Skip to content

Commit 0abfb74

Browse files
Merge pull request #2644 from jtulach/MissingClassThrowsError
Missing Unsafe class yields NoClassDefFoundError
2 parents d1034ed + 494edb4 commit 0abfb74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/rx/internal/util/unsafe/UnsafeAccess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private UnsafeAccess() {
4141
Field field = Unsafe.class.getDeclaredField("theUnsafe");
4242
field.setAccessible(true);
4343
u = (Unsafe) field.get(null);
44-
} catch (Exception e) {
44+
} catch (Throwable e) {
4545
// do nothing, hasUnsafe() will return false
4646
}
4747
UNSAFE = u;

0 commit comments

Comments
 (0)