Project: aptanastudio
Issue APSTUD-4728: NPE in MarkerManager.removeMarker()
Unfortunately no repo case. MarkerManager also needs unit tests (class is about 400 lines) {code} !ENTRY com.aptana.editor.php 4 0 2012-04-20 15:39:00.026 !MESSAGE (Build 3.0.3.1333568321) [ERROR] PHP parser error !STACK 0 java.lang.NullPointerException com.aptana.core.internal.resources.MarkerManager.removeMarker(MarkerManager.java:169) com.aptana.core.internal.resources.UniformResourceMarker.delete(UniformResourceMarker.java:53) com.aptana.core.resources.MarkerUtils.deleteMarkers(MarkerUtils.java:95) com.aptana.editor.php.internal.core.builder.BuildProblemReporter.updateMarkers(BuildProblemReporter.java:128) com.aptana.editor.php.internal.core.builder.BuildProblemReporter.access$0(BuildProblemReporter.java:99) com.aptana.editor.php.internal.core.builder.BuildProblemReporter$1.run(BuildProblemReporter.java:84) org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) com.aptana.editor.php.internal.core.builder.BuildProblemReporter.flush(BuildProblemReporter.java:89) org2.eclipse.php.internal.core.ast.nodes.AST.flushErrors(AST.java:244) com.aptana.editor.php.internal.parser.PHPParser.parse(PHPParser.java:153) com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:286) com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:244) com.aptana.editor.php.internal.ui.editor.PHPSourceEditor.getAST(PHPSourceEditor.java:178) com.aptana.editor.common.AbstractThemeableEditor$3.run(AbstractThemeableEditor.java:1256) org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3938) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) com.aptana.rcp.IDEApplication.start(IDEApplication.java:125) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) org.eclipse.equinox.launcher.Main.run(Main.java:1410) {code}
Story points: 13