Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325161 - NPE in Java breakpoint properties page with JavaStratumLineBreakpoint
Summary: NPE in Java breakpoint properties page with JavaStratumLineBreakpoint
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.6.2   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 325264
  Show dependency tree
 
Reported: 2010-09-13 16:24 EDT by Morris Kwan CLA
Modified: 2011-01-21 10:08 EST (History)
5 users (show)

See Also:


Attachments
patch for HEAD (3.7) (1.07 KB, patch)
2010-09-14 10:33 EDT, Darin Wright CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Morris Kwan CLA 2010-09-13 16:24:25 EDT
Build Identifier: 

This problem is reproduced in RAD. The JSP editor in RAD creates a JavaStratumLineBreakpoint when we double-click on the annotation column. When we open the breakpoint properties page for the JSP breakpoint, we see the following NullPointerException:


java.lang.NullPointerException
	at org.eclipse.jdt.internal.debug.ui.propertypages.JavaBreakpointPage.createTypeSpecificEditors(Unknown Source)
	at org.eclipse.jdt.internal.debug.ui.propertypages.JavaBreakpointPage.createContents(Unknown Source)
	at org.eclipse.jface.preference.PreferencePage.createControl(Unknown Source)
	at org.eclipse.jdt.internal.debug.ui.propertypages.JavaBreakpointPage.createControl(Unknown Source)
	at org.eclipse.jface.preference.PreferenceDialog.createPageControl(Unknown Source)
	at org.eclipse.jface.preference.PreferenceDialog$14.run(Unknown Source)
        .....

That is because there is no code to handle Stratum breakpoint type in JavaBreakpointPage.createTypeSpecificEditors() and the fEditor field is null.

Reproducible: Always

Steps to Reproduce:
1. Set a breakpoint on a JSP file in RAD
2. Open the breakpoint properties page
Comment 1 Darin Wright CLA 2010-09-13 17:58:03 EDT
This needs to be fixed in 3.6.2
Comment 2 Darin Wright CLA 2010-09-14 10:33:51 EDT
Created attachment 178836 [details]
patch for HEAD (3.7)
Comment 3 Darin Wright CLA 2010-09-28 12:24:56 EDT
Released to 3.6.2. Fixed.
Comment 4 Michael Rennie CLA 2011-01-21 10:08:37 EST
verified in the test build M20110119-0834