replace catch Error with catch Throwable

master
melvin 2011-06-19 18:36:16 +08:00
parent 53593bbfab
commit d669036b88
2 changed files with 3 additions and 6 deletions

View File

@ -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;
}
}
}
}

View File

@ -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
}
}