[GREENFOOT-415] Inspecting an object which has an array will throw a NPE.
An exception is thrown when clicking on an array element in the inspection of an object, as reported in http://www.greenfoot.org/topics/8097
I tried to reproduce it and the exception is thrown when trying to open the 'inspect' dialog. This happened if the class contains any of the following declarations: {noformat} int[] items = {1, 2};
int[] items = new int[] {1, 2};
int[] items = new int[2];
boolean[] items = new boolean[] {false, false, false};
{noformat}
but it works fine in the next case: {noformat} boolean[] items = {false, false, false}; {noformat}
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 2.4.1