Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 262019

Summary: [evaluation] Breakpoint Property Condition generates NullPointerException
Product: [Eclipse Project] Platform Reporter: Juergen <doubrawa.juergen>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse, Michael_Rennie
Version: 3.4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Juergen CLA 2009-01-22 09:58:53 EST
Build ID: M20080911-1700

Steps To Reproduce:
I get a "NullPointerException at intValue()" if I make a not null condition on an Integer. Test code:

public class Main {
  public static void main(String[] args) {
    Test t = new Test();
    Integer a = t.getA(); //breakpoint here. condition: t.getA() != null
  }
}

public class Test {
  private Integer a;
  public Integer getA() {
    return this.a;
  }
  public void setA(Integer a) {
    this.a = a;
  }
}


More information:
Comment 1 Juergen CLA 2009-01-22 10:01:29 EST
by the way, this condition works:
((Object) t.getA()) != null
Comment 2 Darin Wright CLA 2009-06-17 15:12:28 EDT

*** This bug has been marked as a duplicate of bug 244263 ***