Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Won't fix
Assignee
Eugene Zhuravlev
Subsystem
Debugger
Affected versions
107.777 (10.5.4)
Fixed in build
No Fixed in build
  • Created by   Thomas Burns
    3 months ago (04 Feb 2012 04:09)
  • Updated by   Eugene Zhuravlev
    3 months ago (06 Feb 2012 17:25)
 
IDEA-80851 Classes that implement Map Interface can not be inspected
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
You asked that I post code that could reproduce this issue. If you put a breakpoint on the println in main, you can not inspect the instance of MapBug – I get a "unable to evaluate the expression java.lang.NullPointerException
Comments (1)
 
History
 
Linked Issues (?)
 
Eugene Zhuravlev
  Eugene Zhuravlev
06 Feb 2012 17:25
3 months ago
This is an expected result for this particular implementation as it violates Maps's contract: the entrySet() should not return null collection.
Debugger's default renderer for Map objects calls this method to get all entries in the map. You should either use default renderer for class types (right click on the node and select "View As"->"Object") to render this particular instance, or turn "Alternative views for Collections classes" option off, so that generic renderer will be used for collection classes.
Alternatively you may specify your own renderer specifically for Maps that will override the IDEA's one.
Related Changes
Resolved Date
3 months ago (06 Feb 2012 17:25)
State
SubmittedWon't fix