KB-20071113-029

From Triled Wiki

Jump to: navigation, search

Debug any application that has code similar to:

...
Object someObject = null;
...

You will get crash.

[edit] Temporarily solution

suggested by Andreas Beresko [1].

When you need to assign "null" to an object, just extract the assignment into a separate method and in debug mode, step over it.

e.g.

Object o = new Object();
setToNull(o); // <-- do NOT step into in debug, because this will lead to the crash!

private void setToNull(Object o){
    o = null;
 } 
Personal tools