diff --git a/core/src/com/google/inject/internal/util/LineNumbers.java b/core/src/com/google/inject/internal/util/LineNumbers.java index d3120a8160..bb52eb8e3f 100644 --- a/core/src/com/google/inject/internal/util/LineNumbers.java +++ b/core/src/com/google/inject/internal/util/LineNumbers.java @@ -66,7 +66,7 @@ public LineNumbers(Class type) throws IOException { InputStream in = null; try { in = type.getResourceAsStream("/" + type.getName().replace('.', '/') + ".class"); - } catch (IllegalStateException ignored) { + } catch (IllegalStateException | NullPointerException ignored) { // Some classloaders throw IllegalStateException when they can't load a resource. } if (in != null) {