Project: JDT
Bug 182923 NPE in AbstractFix#getAdditionalInfo
Reported: 2007-04-18 07:00:32 | Status: resolved fixed

I20070417-0800 Given: package test1; public class E1 { public void foo(int[] is) { for (int i = 0; i < is.length; i++) { System.out.println(is[i]); } } } 1. Set caret after 'for' 2. Ctrl-1 3. Wait a sec Is: Caused by: java.lang.NullPointerException at org.eclipse.jdt.internal.corext.fix.AbstractFix.getAdditionalInfo(AbstractFix.java:120) at org.eclipse.jdt.internal.ui.text.correction.FixCorrectionProposal.getAdditionalProposalInfo(FixCorrectionProposal.java:113) at org.eclipse.jface.text.contentassist.AdditionalInfoController$6.run(AdditionalInfoController.java:162) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) ... 23 more

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