Bug 504475 - Exception in thread "MI TX Thread" java.lang.NullPointerException
Summary: Exception in thread "MI TX Thread" java.lang.NullPointerException
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 9.0.1   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-06 01:39 EDT by Tsunglin Yang CLA
Modified: 2020-09-04 15:25 EDT (History)
2 users (show)

See Also:


Attachments
GDBTrace and Code needed to reproduce the bug. (26.98 KB, application/octet-stream)
2016-10-06 01:39 EDT, Tsunglin Yang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tsunglin Yang CLA 2016-10-06 01:39:30 EDT
Created attachment 264647 [details]
GDBTrace and Code needed to reproduce the bug.

This issue has been mentioned here 
 https://bugzilla.redhat.com/show_bug.cgi?id=889208
But the author didn't have a simple way to replicate this bug.
I think I do have one.

Error Message: 

Exception in thread "MI TX Thread" java.lang.NullPointerException
	at org.eclipse.cdt.dsf.mi.service.command.commands.MICommand$MIStandardParameterAdjustable.getAdjustedValue(MICommand.java:327)
	at org.eclipse.cdt.dsf.mi.service.command.commands.MICommand.parametersToString(MICommand.java:231)
	at org.eclipse.cdt.dsf.mi.service.command.commands.MICommand.constructCommand(MICommand.java:168)
	at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$TxThread.run(AbstractMIControl.java:658)

Description: 
   When I try to use IExpressions.getSubExpressions recursively to expand all variable from a root, this exception was threw. However, this will not happen if the number of calling getSubExpressions is small.

How to reproduce:
   I attached the code needed to reproduce the bug. I've reproduced it on another Win10 computer successfully. 

Additional INFO:
   Please feel free to contact me if there's anything else needed.