replace catch Error with catch Throwable
parent
53593bbfab
commit
d669036b88
|
@ -263,7 +263,6 @@ public class IconImages {
|
|||
}
|
||||
|
||||
private static ImageIcon loadAnimatedIcon(final String name) {
|
||||
|
||||
try {
|
||||
final byte data[]=new byte[1<<16];
|
||||
int size=0;
|
||||
|
@ -277,10 +276,8 @@ public class IconImages {
|
|||
size+=len;
|
||||
}
|
||||
return new ImageIcon(Arrays.copyOf(data,size));
|
||||
} catch (final Exception ex) {
|
||||
} catch (final Throwable th) {
|
||||
return MISSING2;
|
||||
} catch (final Error er) {
|
||||
return MISSING2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -257,7 +257,7 @@ public class GameController {
|
|||
}
|
||||
}
|
||||
});
|
||||
} catch (Error err) {
|
||||
} catch (final Throwable th) {
|
||||
//there will be an error if X windows is not present on Linux
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue