DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23320>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23320
Ant's optional task 'Splash' generates NullPointerException when running it from JBuilder
9
Summary: Ant's optional task 'Splash' generates
NullPointerException when running it from JBuilder 9
Product: Ant
Version: 1.5.4
Platform: All
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Optional Tasks
AssignedTo: dev@ant.apache.org
ReportedBy: thaiha@psv.com.vn
The Splash optional task of Ant 1.5.4 has the following code:
------- SplashTask.java, line 201 ---------
in = SplashTask.class.getClassLoader().getResourceAsStream
("images/ant_logo_large.gif");
-------------------------------------------
This code will generate a NullPointerException when running from JBuilder 9.
The reason is because SplashTask.class.getClassLoader() returns null
We can fix it by change the code to something like:
-----------------
if (SplashTask.class.getClassLoader() == null) {
in = ClassLoader.getSystemResourceAsStream("images/ant_logo_large.gif");
} else {
in = SplashTask.class.getClassLoader().getResourceAsStream
("images/ant_logo_large.gif");
}
----------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|