Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #178 (new defect)

Opened 10 years ago

Last modified 10 years ago

Unable to load source file. Null pointer exception.

Reported by: k9dj Assigned to:
Priority: major Component: descent.astview
Version: Keywords:
Cc:

Description

java.lang.NullPointerException?

at descent.internal.compiler.parser.Parser.parseBasicType(Parser.java:3070) at descent.internal.compiler.parser.Parser.parseParametersD1(Parser.java:1718) at descent.internal.compiler.parser.Parser.parseParameters(Parser.java:1652) at descent.internal.compiler.parser.Parser.parseBasicType2(Parser.java:3243) at descent.internal.compiler.parser.Parser.parseDeclarations(Parser.java:3718) at descent.internal.compiler.parser.Parser.parseDeclarations(Parser.java:3498) at descent.internal.compiler.parser.Parser.parseDeclDefs(Parser.java:530) at descent.internal.compiler.parser.Parser.parseDeclDefs(Parser.java:411) at descent.internal.compiler.parser.Parser.parseBlock(Parser.java:1230) at descent.internal.compiler.parser.Parser.parseBlock(Parser.java:1212) at descent.internal.compiler.parser.Parser.parseDeclDefs(Parser.java:609) at descent.internal.compiler.parser.Parser.parseDeclDefs(Parser.java:411) at descent.internal.compiler.parser.Parser.parseModule(Parser.java:393) at descent.internal.compiler.parser.Parser.parseModuleObj(Parser.java:287) at descent.internal.compiler.parser.Parser.parseModuleObj(Parser.java:266) at descent.core.dom.CompilationUnitResolver?.parse(CompilationUnitResolver?.java:184) at descent.core.dom.CompilationUnitResolver?.parse(CompilationUnitResolver?.java:128) at descent.core.dom.CompilationUnitResolver?.parse(CompilationUnitResolver?.java:118) at descent.internal.compiler.SourceElementParser?.parseCompilationUnit(SourceElementParser?.java:157) at descent.internal.core.CompilationUnit?.buildStructure(CompilationUnit?.java:174) at descent.internal.core.Openable.generateInfos(Openable.java:223) at descent.internal.core.JavaElement?.openWhenClosed(JavaElement?.java:539) at descent.internal.core.JavaElement?.getElementInfo(JavaElement?.java:277) at descent.internal.core.JavaElement?.getElementInfo(JavaElement?.java:260) at descent.internal.core.CompilationUnit?.getSourceRange(CompilationUnit?.java:824) at descent.internal.ui.javaeditor.selectionactions.GoToNextPreviousMemberAction?.update(GoToNextPreviousMemberAction?.java:84) at descent.internal.ui.javaeditor.selectionactions.GoToNextPreviousMemberAction?.<init>(GoToNextPreviousMemberAction?.java:63) at descent.internal.ui.javaeditor.selectionactions.GoToNextPreviousMemberAction?.newGoToNextMemberAction(GoToNextPreviousMemberAction?.java:50) at descent.internal.ui.javaeditor.JavaEditor?.createActions(JavaEditor?.java:2527) at descent.internal.ui.javaeditor.CompilationUnitEditor?.createActions(CompilationUnitEditor?.java:1153) at org.eclipse.ui.texteditor.AbstractTextEditor?.createPartControl(AbstractTextEditor?.java:3362) at org.eclipse.ui.texteditor.StatusTextEditor?.createPartControl(StatusTextEditor?.java:53) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor?.createPartControl(AbstractDecoratedTextEditor?.java:394) at descent.internal.ui.javaeditor.JavaEditor?.createPartControl(JavaEditor?.java:2842) at descent.internal.ui.javaeditor.CompilationUnitEditor?.createPartControl(CompilationUnitEditor?.java:1555) at org.eclipse.ui.internal.EditorReference?.createPartHelper(EditorReference?.java:661) at org.eclipse.ui.internal.EditorReference?.createPart(EditorReference?.java:428) at org.eclipse.ui.internal.WorkbenchPartReference?.getPart(WorkbenchPartReference?.java:594) at org.eclipse.ui.internal.PartPane?.setVisible(PartPane?.java:306) at org.eclipse.ui.internal.presentations.PresentablePart?.setVisible(PresentablePart?.java:180) at org.eclipse.ui.internal.presentations.util.PresentablePartFolder?.select(PresentablePartFolder?.java:270) at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder?.select(LeftToRightTabOrder?.java:65) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation?.selectPart(TabbedStackPresentation?.java:473) at org.eclipse.ui.internal.PartStack?.refreshPresentationSelection(PartStack?.java:1256) at org.eclipse.ui.internal.PartStack?.setSelection(PartStack?.java:1209) at org.eclipse.ui.internal.PartStack?.showPart(PartStack?.java:1608) at org.eclipse.ui.internal.PartStack?.add(PartStack?.java:499) at org.eclipse.ui.internal.EditorStack?.add(EditorStack?.java:103) at org.eclipse.ui.internal.PartStack?.add(PartStack?.java:485) at org.eclipse.ui.internal.EditorStack?.add(EditorStack?.java:112) at org.eclipse.ui.internal.EditorSashContainer?.addEditor(EditorSashContainer?.java:63) at org.eclipse.ui.internal.EditorAreaHelper?.addToLayout(EditorAreaHelper?.java:217) at org.eclipse.ui.internal.EditorAreaHelper?.addEditor(EditorAreaHelper?.java:207) at org.eclipse.ui.internal.EditorManager?.createEditorTab(EditorManager?.java:779) at org.eclipse.ui.internal.EditorManager?.openEditorFromDescriptor(EditorManager?.java:678) at org.eclipse.ui.internal.EditorManager?.openEditor(EditorManager?.java:639) at org.eclipse.ui.internal.WorkbenchPage?.busyOpenEditorBatched(WorkbenchPage?.java:2817) at org.eclipse.ui.internal.WorkbenchPage?.busyOpenEditor(WorkbenchPage?.java:2729) at org.eclipse.ui.internal.WorkbenchPage?.access$11(WorkbenchPage?.java:2721) at org.eclipse.ui.internal.WorkbenchPage?$10.run(WorkbenchPage?.java:2673) at org.eclipse.swt.custom.BusyIndicator?.showWhile(BusyIndicator?.java:70) at org.eclipse.ui.internal.WorkbenchPage?.openEditor(WorkbenchPage?.java:2668) at org.eclipse.ui.internal.WorkbenchPage?.openEditor(WorkbenchPage?.java:2652) at org.eclipse.ui.internal.WorkbenchPage?.openEditor(WorkbenchPage?.java:2643) at descent.internal.ui.javaeditor.EditorUtility?.openInEditor(EditorUtility?.java:278) at descent.internal.ui.javaeditor.EditorUtility?.openInEditor(EditorUtility?.java:155) at descent.internal.ui.actions.OpenActionUtil?.open(OpenActionUtil?.java:49) at descent.ui.actions.OpenAction?.run(OpenAction?.java:190) at descent.ui.actions.OpenAction?.run(OpenAction?.java:174) at descent.ui.actions.SelectionDispatchAction?.dispatchRun(SelectionDispatchAction?.java:267) at descent.ui.actions.SelectionDispatchAction?.run(SelectionDispatchAction?.java:243) at descent.internal.ui.navigator.OpenAndExpand?.run(OpenAndExpand?.java:50) at org.eclipse.ui.actions.RetargetAction?.run(RetargetAction?.java:221) at org.eclipse.ui.internal.navigator.CommonNavigatorManager?$3.open(CommonNavigatorManager?.java:184) at org.eclipse.jface.viewers.StructuredViewer?$2.run(StructuredViewer?.java:820) at org.eclipse.core.runtime.SafeRunner?.run(SafeRunner?.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable?.run(SafeRunnable?.java:175) at org.eclipse.jface.viewers.StructuredViewer?.fireOpen(StructuredViewer?.java:818) at org.eclipse.jface.viewers.StructuredViewer?.handleOpen(StructuredViewer?.java:1079) at org.eclipse.ui.navigator.CommonViewer?.handleOpen(CommonViewer?.java:372) at org.eclipse.jface.viewers.StructuredViewer?$6.handleOpen(StructuredViewer?.java:1183) at org.eclipse.jface.util.OpenStrategy?.fireOpenEvent(OpenStrategy?.java:263) at org.eclipse.jface.util.OpenStrategy?.access$2(OpenStrategy?.java:257) at org.eclipse.jface.util.OpenStrategy?$1.handleEvent(OpenStrategy?.java:297) at org.eclipse.swt.widgets.EventTable?.sendEvent(EventTable?.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle?.run(EclipseAppHandle?.java:193) 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:386) 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:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Attachments

signal.d (4.9 kB) - added by k9dj on 06/06/09 15:25:13.

Change History

06/06/09 15:25:13 changed by k9dj

  • attachment signal.d added.

06/06/09 16:43:33 changed by k9dj

Looking at the stack trace and commenting out code I have narrowed it down to specific input lines. I think it is a combination of multiple errors. I was converting code from C to D. The following line caused the exception. int function (int _sig, const struct sigaction *_act, struct sigaction *_oact) sigaction; removing either "const" or "struct" from the second argument eliminates the exception and properly shows an error.