Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#190 nullexception

open
nobody
None
5
2013-01-16
2012-06-15
Anonymous
No

sveditor 0.9.3
after rebuilding index and hitting F3 (open declaration) I got nullexception (see below).

-------------------------
eclipse.buildId=M20120208-0800
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product

Error
Fri Jun 15 19:57:54 MSD 2012
java.lang.NullPointerException

java.lang.NullPointerException
at net.sf.sveditor.core.scanner.SVFileTreeMacroProvider.collectThisFileMacros(SVFileTreeMacroProvider.java:208)
at net.sf.sveditor.core.scanner.SVFileTreeMacroProvider.collectThisFileMacros(SVFileTreeMacroProvider.java:201)
at net.sf.sveditor.core.scanner.SVFileTreeMacroProvider.findMacro(SVFileTreeMacroProvider.java:83)
at net.sf.sveditor.core.scanner.SVPreProcDefineProvider.isDefined(SVPreProcDefineProvider.java:78)
at net.sf.sveditor.core.scanner.SVPreProcScanner.handle_preproc_directive(SVPreProcScanner.java:423)
at net.sf.sveditor.core.scanner.SVPreProcScanner.get_ch(SVPreProcScanner.java:799)
at net.sf.sveditor.core.scanner.SVScannerTextScanner.get_ch(SVScannerTextScanner.java:37)
at net.sf.sveditor.core.parser.SVLexer.get_ch(SVLexer.java:1033)
at net.sf.sveditor.core.parser.SVLexer.next_token_int(SVLexer.java:618)
at net.sf.sveditor.core.parser.SVLexer.next_token(SVLexer.java:532)
at net.sf.sveditor.core.parser.SVLexer.peek(SVLexer.java:221)
at net.sf.sveditor.core.parser.ParserSVDBFileFactory.process_file(ParserSVDBFileFactory.java:247)
at net.sf.sveditor.core.parser.ParserSVDBFileFactory.scan(ParserSVDBFileFactory.java:169)
at net.sf.sveditor.core.parser.ParserSVDBFileFactory.parse(ParserSVDBFileFactory.java:656)
at net.sf.sveditor.core.db.index.AbstractSVDBIndex.processFile(AbstractSVDBIndex.java:1530)
at net.sf.sveditor.core.db.index.AbstractSVDBIndex.parseFilesJob(AbstractSVDBIndex.java:493)
at net.sf.sveditor.core.db.index.AbstractSVDBIndex.parseFiles(AbstractSVDBIndex.java:432)
at net.sf.sveditor.core.db.index.AbstractSVDBIndex.ensureIndexState(AbstractSVDBIndex.java:380)
at net.sf.sveditor.core.db.index.AbstractSVDBIndex.findGlobalScopeDecl(AbstractSVDBIndex.java:1886)
at net.sf.sveditor.core.db.index.SVDBIndexCollection.findGlobalScopeDecl(SVDBIndexCollection.java:480)
at net.sf.sveditor.core.db.index.SVDBFileOverrideIndexIterator.findGlobalScopeDecl(SVDBFileOverrideIndexIterator.java:52)
at net.sf.sveditor.core.db.search.SVDBFindNamedClass.find(SVDBFindNamedClass.java:43)
at net.sf.sveditor.core.db.search.SVDBFindSuperClass.find(SVDBFindSuperClass.java:43)
at net.sf.sveditor.core.db.search.SVDBFindByNameInClassHierarchy.find(SVDBFindByNameInClassHierarchy.java:131)
at net.sf.sveditor.core.expr_utils.SVContentAssistExprVisitor.findInClassHierarchy(SVContentAssistExprVisitor.java:264)
at net.sf.sveditor.core.expr_utils.SVContentAssistExprVisitor.findRoot(SVContentAssistExprVisitor.java:508)
at net.sf.sveditor.core.expr_utils.SVContentAssistExprVisitor.identifier_expr(SVContentAssistExprVisitor.java:535)
at net.sf.sveditor.core.expr_utils.SVContentAssistExprVisitor.visit(SVContentAssistExprVisitor.java:174)
at net.sf.sveditor.core.expr_utils.SVContentAssistExprVisitor.findItem(SVContentAssistExprVisitor.java:134)
at net.sf.sveditor.core.open_decl.OpenDeclUtils.openDecl(OpenDeclUtils.java:111)
at net.sf.sveditor.ui.editor.actions.OpenDeclarationAction.findTarget(OpenDeclarationAction.java:102)
at net.sf.sveditor.ui.editor.actions.OpenDeclarationAction.run(OpenDeclarationAction.java:68)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1531)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1257)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1294)
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:730)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3019)
at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:5016)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4408)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8422)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1245)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2276)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
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:344)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

Discussion