Bug 43006 - Null Pointer Exception if icon.properties file not found
Null Pointer Exception if icon.properties file not found
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.3
All All
: P5 trivial (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-07-31 15:15 UTC by Fernando Ruscitti
Modified: 2007-08-11 03:16 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Ruscitti 2007-07-31 15:15:11 UTC
Hello, I was building JMeter and when I tried to run it from eclipse, the 
icon.properties file could not be found.
This leads to a NPE, if you look at the code in JMeterUtils.java, line 191:

is = JMeterUtils.class.getClassLoader().getResource(file).openStream();

so if the getResource(file) return null, the openStream raises the NPE.

Just a detail.
Regards.
Fernando.
Comment 1 Sebb 2007-08-11 03:16:28 UTC
Thanks - fixed in SVN r564889