Bug 3452 - NPE doing Display from Binary (1GLEG5K)
Summary: NPE doing Display from Binary (1GLEG5K)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:55 EDT by Darin Swanson CLA
Modified: 2002-01-11 09:04 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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++