News:

How did you even find this place?

Main Menu

throw null;

Started by Camel, September 16, 2009, 01:47:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Camel

...will crash your catch block

discuss

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

iago

You shouldn't go throwing things that don't exist. Liable to cause an anomaly, it is.

Sidoh

is that kind of like tricking a dog into running after nothing while playing fetch?

rabbit

Or naming it "Stay" and telling it to "come here" all the time?

MyndFyre

Quote from: Camel on September 16, 2009, 01:47:00 PM
...will crash your catch block

discuss
In .NET I'm pretty sure it would simply generate a NullReferenceException (analogous to NullPointerException in Java) in the stack frame in which the "throw null" existed which could bubble up to a higher stack frame with the appropriate handler.

Is that it?
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.