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

Bug 325161

Summary: NPE in Java breakpoint properties page with JavaStratumLineBreakpoint
Product: [Eclipse Project] JDT Reporter: Morris Kwan <mkwan>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, darin.eclipse, Michael_Rennie, swanj, thatnitind
Version: 3.6   
Target Milestone: 3.6.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 325264    
Attachments:
Description Flags
patch for HEAD (3.7) none

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