Skip to content

Commit 71fc9ae

Browse files
committed
JAVA-469: need to catch Throwable cause Error is thrown
1 parent 8e74127 commit 71fc9ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/org/bson/types/ObjectId.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public static int _flip( int x ){
360360
sb.append( ni.toString() );
361361
}
362362
machinePiece = sb.toString().hashCode() << 16;
363-
} catch (Exception e) {
363+
} catch (Throwable e) {
364364
// exception sometimes happens with IBM JVM, use random
365365
LOGGER.log(Level.WARNING, e.getMessage(), e);
366366
machinePiece = (new Random().nextInt()) << 16;

0 commit comments

Comments
 (0)