Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334523 - NPE when opening schema editor
Summary: NPE when opening schema editor
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.7 M7   Edit
Assignee: Ankur Sharma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 277559 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-17 10:46 EST by Benjamin Muskalla CLA
Modified: 2011-04-12 06:46 EDT (History)
4 users (show)

See Also:


Attachments
schema (3.11 KB, application/xml)
2011-01-17 10:46 EST, Benjamin Muskalla CLA
no flags Details
Patch (1.58 KB, patch)
2011-04-12 05:47 EDT, Ankur Sharma CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Muskalla CLA 2011-01-17 10:46:15 EST
What steps will reproduce the problem?
1. Open attached schema from within the manfiest editor, extension points page (dbl click)


-- Error Details --
Date: Mon Jan 17 16:42:36 CET 2011
Message: Unable to create editor ID org.eclipse.pde.ui.schemaEditor: An unexpected exception was thrown.
Severity: Error
Product: Eclipse SDK 3.7.0.v201008051700 (org.eclipse.sdk.ide)
Plugin: org.eclipse.ui
Session Data:
eclipse.buildId=I20100805-1700
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86


Exception Stack Trace:
java.lang.NullPointerException
at org.eclipse.pde.internal.core.schema.SchemaDescriptor.<init>(SchemaDescriptor.java:46)
at org.eclipse.pde.internal.ui.editor.schema.SchemaInputContext.createExternalModel(SchemaInputContext.java:76)
at org.eclipse.pde.internal.ui.editor.schema.SchemaInputContext.createModel(SchemaInputContext.java:57)
at org.eclipse.pde.internal.ui.editor.context.InputContext.create(InputContext.java:134)
at org.eclipse.pde.internal.ui.editor.schema.SchemaInputContext.<init>(SchemaInputContext.java:42)
at org.eclipse.pde.internal.ui.editor.schema.SchemaEditor.createSystemFileContexts(SchemaEditor.java:103)
at org.eclipse.pde.internal.ui.editor.PDEFormEditor.createInputContexts(PDEFormEditor.java:206)
at org.eclipse.pde.internal.ui.editor.PDEFormEditor.createPages(PDEFormEditor.java:244)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674)
at org.eclipse.pde.internal.ui.editor.schema.SchemaEditor.openEditor(SchemaEditor.java:211)
at org.eclipse.pde.internal.ui.editor.schema.SchemaEditor.openSchema(SchemaEditor.java:201)
at org.eclipse.pde.internal.ui.editor.actions.OpenSchemaAction.openSchemaFile(OpenSchemaAction.java:219)
at org.eclipse.pde.internal.ui.editor.actions.OpenSchemaAction.run(OpenSchemaAction.java:194)
at org.eclipse.pde.internal.ui.editor.plugin.ExtensionPointsSection.handleDoubleClick(ExtensionPointsSection.java:225)
at org.eclipse.pde.internal.ui.editor.TableSection$PartAdapter.handleDoubleClick(TableSection.java:46)
at org.eclipse.pde.internal.ui.parts.TablePart$2.doubleClick(TablePart.java:46)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:824)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:822)
at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:1113)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1225)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:238)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:235)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:296)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 1 Benjamin Muskalla CLA 2011-01-17 10:46:27 EST
Created attachment 186914 [details]
schema

.
Comment 2 Ankur Sharma CLA 2011-03-20 11:06:34 EDT
Can you please retry this with latest I-Build? I am unable to reproduce the NPE. If you can reproduce the problem, please share the plug-in (I don't have Egit). If reproduceable, the problem will be of missing schema file rather than with the schema file.
Comment 3 Markus Keller CLA 2011-04-08 06:20:15 EDT
See bug 277559 and steps to reproduce there.
Comment 4 Ankur Sharma CLA 2011-04-12 05:47:05 EDT
Created attachment 193021 [details]
Patch
Comment 5 Ankur Sharma CLA 2011-04-12 06:43:59 EDT
Fixed in HEAD
Comment 6 Ankur Sharma CLA 2011-04-12 06:46:42 EDT
*** Bug 277559 has been marked as a duplicate of this bug. ***