Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325264 - 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.7 M2   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 325161
Blocks:
  Show dependency tree
 
Reported: 2010-09-14 10:34 EDT by Darin Wright CLA
Modified: 2011-05-26 14:48 EDT (History)
3 users (show)

See Also:


Attachments
patch (1.07 KB, patch)
2010-09-14 10:35 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 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