Bug 3452

Summary: NPE doing Display from Binary (1GLEG5K)
Product: [Eclipse Project] JDT Reporter: Darin Swanson <Darin_Swanson>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M1   
Hardware: All   
OS: All   
Whiteboard:

Description Darin Swanson CLA 2001-10-10 22:55:21 EDT
DS (10/10/01 4:20:15 PM)
	Step into System.out.println("HEY") in some code
	In StringBuffer(String)
	swipe "append(s)"
		java.lang.NullPointerException
		at java.util.Hashtable.put(Hashtable.java:386)
		at org.eclipse.jdt.internal.core.SourceMapper.getImports(SourceMapper.java:747)
		at org.eclipse.jdt.internal.core.eval.EvaluationContextWrapper.evaluateCodeSnippet(EvaluationContextWrapper.java:151)
		at org.eclipse.jdt.internal.debug.core.StackFrameEvaluationContext.doEvaluation(StackFrameEvaluationContext.java:86)
		at org.eclipse.jdt.internal.debug.core.ThreadEvaluationContext.run(ThreadEvaluationContext.java:120)
		at java.lang.Thread.run(Thread.java:498)

SourceMapper.getImports(BinaryType) line: 747
	seems to have a bug of attempting to put null into a Hashtable.

NOTES:
Comment 1 Olivier Thomann CLA 2001-10-16 14:25:19 EDT
The put in the hashtable was done even if the imports were null. Moved the put 
inside the if (imports != null) {...}
Released in HEAD.
Comment 2 DJ Houghton CLA 2001-10-29 17:15:19 EST
PRODUCT VERSION:
203++