Null Pointer Exception

By Cowboy Coder

On Code Rage

Released on October 14, 2022

Thumbnail

I can't act on this object, it's null


[Chorus]

Null Pointer Exception (stack trace)

Digging in the Debug Logs

Null Pointer Exception (stack trace)

Digging in the Debug Logs


[Verse 1]

Sev1 one ticket coming straight to you

Something unexpected and it's out of the blue

Stack trace running is about a mile long

Pouring some coffee, going to make it strong

Long night ahead, digging through the logs

I really got no time for these conference calls

Digging and digging, 'till I see something frightening

Thunder starting rumbling and then came the lightning

I see the script at the top of the pagе

My mind starts racing, that's when I feel the rage

Thе most dreaded of exceptions that can ever be called

It gives you tons of detail but tells you nothing at all

I see the script at the top of the page

My mind starts racing, that's when I feel the rage

The most dreaded of exceptions that can ever be called

It gives you tons of detail but tells you nothing at all


[Chorus]

Null Pointer Exception (stack trace)

Digging in the Debug Logs

Null Pointer Exception (stack trace)

Digging in the Debug Logs


[Verse 2]

Looking through life for something to behold

I've gotta be strong and I've gotta be bold

Writing down the details for all to see

When it is released, I start to be free

For something unexpected always comes along

It doesn't mean it's bad and it doesn’t mean it's wrong

Not everything can go according to plan

It's really up to us to not understand

Reaching for the stars can sometimes be hard

When you are making history, it never hurts to have a little mystery

The most dreaded of exceptions that can ever be called

It gives you tons of detail but tells you nothing at all

Reaching for the stars can sometimes be hard

When you are making history, it never hurts to have a little mystery

The most dreaded of exceptions that can ever be called

It gives you tons of detail but tells you nothing at all


[Chorus]

Null Pointer Exception (stack trace)

Digging in the Debug Logs

Null Pointer Exception (stack trace)

Digging in the Debug Logs


[Bridge]

It's kind of weird because, like the

Programming language itself, it's just a generic exception

So if you ever pass a null object into

Some kind of method, it's going to say

"Hey, I can't act on this

I can't act on this object. It's null."

It's known as... it's an error or an exception that gets thrown

And typically, good programming will capture that and give you a pretty message

But when you don't code it properly, it'll just bubble it up like that


[Chorus]

Null Pointer Exception (stack trace)

Digging in the Debug Logs

Null Pointer Exception (stack trace)

Digging in the Debug Logs