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

Bug 325264

Summary: NPE in Java breakpoint properties page with JavaStratumLineBreakpoint
Product: [Eclipse Project] JDT Reporter: Darin Wright <darin.eclipse>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: darin.eclipse, Michael_Rennie, mkwan
Version: 3.6   
Target Milestone: 3.7 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 325161    
Bug Blocks:    
Attachments:
Description Flags
patch none

Description Darin Wright CLA 2010-09-14 10:34:45 EDT
+++ This bug was initially created as a clone of Bug #325161 +++

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-14 10:35:21 EDT
Created attachment 178837 [details]
patch
Comment 2 Darin Wright CLA 2010-09-14 10:40:38 EDT
Fixed in HEAD.
Comment 3 Darin Wright CLA 2010-09-16 11:57:07 EDT
Verified in I20100915-2024