Project: JDT
Bug 55555 NPE in JavaFormatter.plainFormat
Reported: 2004-03-22 12:03:22 | Status: resolved fixed

I20040322 Found NPE in .log (related to scrapbook page) !ENTRY org.eclipse.ui 4 0 Mrz 22, 2004 17:57:21.152 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.corext.template.java.JavaFormatter.plainFormat(JavaFormatter.java:174) at org.eclipse.jdt.internal.corext.template.java.JavaFormatter.format(JavaFormatter.java:154) at org.eclipse.jdt.internal.corext.template.java.JavaFormatter.format(JavaFormatter.java:78) at org.eclipse.jdt.internal.corext.template.java.JavaContext.evaluate(JavaContext.java:124) at org.eclipse.jdt.internal.ui.text.template.contentassist.TemplateProposal.getAdditionalProposalInfo(TemplateProposal.java:206) at org.eclipse.jface.text.contentassist.AdditionalInfoController.computeInformation(AdditionalInfoController.java:221) at org.eclipse.jface.text.AbstractInformationControlManager.doShowInformation(AbstractInformationControlManager.java:734) at org.eclipse.jface.text.AbstractInformationControlManager.showInformation(AbstractInformationControlManager.java:724) at org.eclipse.jface.text.contentassist.AdditionalInfoController$1.run(AdditionalInfoController.java:173) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2401) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2106) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1488) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1462) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:259) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:90) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:262) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:213) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:115) 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:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:315) at org.eclipse.core.launcher.Main.run(Main.java:740) at org.eclipse.core.launcher.Main.main(Main.java:724)

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaFormatter.java