Deal gracefully with having a null jar source in toString() even after an
attempt to resolve the jar file. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2243 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ResourceBundle.java,v 1.8 2003/01/18 19:56:45 mdb Exp $
|
// $Id: ResourceBundle.java,v 1.9 2003/02/05 22:48:50 shaper Exp $
|
||||||
|
|
||||||
package com.threerings.resource;
|
package com.threerings.resource;
|
||||||
|
|
||||||
@@ -144,8 +144,10 @@ public class ResourceBundle
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
resolveJarFile();
|
resolveJarFile();
|
||||||
return "[path=" + _jarSource.getName() +
|
return (_jarSource == null) ? "[file=" + _source + "]" :
|
||||||
|
"[path=" + _jarSource.getName() +
|
||||||
", entries=" + _jarSource.size() + "]";
|
", entries=" + _jarSource.size() + "]";
|
||||||
|
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
return "[file=" + _source + ", ioe=" + ioe + "]";
|
return "[file=" + _source + ", ioe=" + ioe + "]";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user