/art/test/122-npe/src/ |
Main.java | 39 NullPointerException npe = null; local 47 npe = e; 49 check(npe, thisLine += 4); 55 npe = e; 57 check(npe, thisLine += 8); 63 npe = e; 65 check(npe, thisLine += 8); 70 npe = e; 72 check(npe, thisLine += 7); 77 npe = e [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
OldRuntimeExceptionTest.java | 26 NullPointerException npe = new NullPointerException(); local 27 RuntimeException re = new RuntimeException(message, npe); 29 assertEquals(npe, re.getCause()); 31 re = new RuntimeException(null, npe); 39 NullPointerException npe = new NullPointerException(); local 40 RuntimeException re = new RuntimeException(npe); 41 assertEquals(npe, re.getCause());
|
OldThrowableTest.java | 25 NullPointerException npe = new NullPointerException(); local 26 Throwable thr = new Throwable(message, npe); 28 assertEquals("cause is incorrect.", npe, thr.getCause()); 30 thr = new Throwable(null, npe); 32 assertEquals("cause is incorrect.", npe, thr.getCause()); 41 NullPointerException npe = new NullPointerException(); local 42 Throwable thr = new Throwable(npe); 44 assertEquals("Returned cause is incorrect.", npe, thr.getCause()); 73 NullPointerException npe = new NullPointerException(); local 74 Throwable thr = new Throwable(message, npe); 81 NullPointerException npe = new NullPointerException(); local 117 NullPointerException npe = new NullPointerException(); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
SecurityExceptionTest.java | 50 NullPointerException npe = new NullPointerException(); local 51 SecurityException e = new SecurityException("fixture", npe); 53 assertSame(npe, e.getCause()); 61 NullPointerException npe = new NullPointerException(); local 62 SecurityException e = new SecurityException(npe); 63 assertSame(npe, e.getCause());
|
ExceptionInInitializerErrorTest.java | 45 NullPointerException npe = new NullPointerException("fixture"); local 46 ExceptionInInitializerError e = new ExceptionInInitializerError(npe); 49 assertSame(npe, e.getException()); 50 assertSame(npe, e.getCause());
|
TypeNotPresentExceptionTest.java | 37 NullPointerException npe = new NullPointerException(); local 38 e = new TypeNotPresentException(getClass().getName(), npe); 40 assertSame(npe, e.getCause());
|
AssertionErrorTest.java | 36 NullPointerException npe = new NullPointerException("null value"); local 37 e = new AssertionError(npe); 38 assertEquals(npe.toString(), e.getMessage()); 39 assertSame(npe, e.getCause());
|
IllegalArgumentExceptionTest.java | 67 NullPointerException npe = new NullPointerException(); local 69 npe); 71 assertSame(npe, e.getCause());
|
/art/test/439-npe/src/ |
Main.java | 316 } catch (NullPointerException npe) { 317 check(npe, thisLine += 2, methodLine, "$opt$noinline$setObjectField"); 322 } catch (NullPointerException npe) { 323 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setIntField"); 328 } catch (NullPointerException npe) { 329 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setFloatField"); 334 } catch (NullPointerException npe) { 335 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setLongField"); 340 } catch (NullPointerException npe) { 341 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setDoubleField") [all...] |
/art/test/140-dce-regression/src/ |
Main.java | 25 } catch (NullPointerException npe) {
|
/art/test/524-boolean-simplifier-regression/src/ |
Main.java | 27 } catch (NullPointerException npe) {
|
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/nullables/ |
NullabilityTest.java | 35 } catch (NullPointerException npe) { 36 assertThat(npe).hasMessage("Cannot return null from a non-@Nullable @Provides method"); 90 } catch (NullPointerException npe) { 91 assertThat(npe).hasMessage("Cannot return null from a non-@Nullable component method"); 104 } catch(NullPointerException npe) { 105 assertThat(npe).hasMessage("Cannot return null from a non-@Nullable "
|
/external/testng/src/test/java/test/asserttests/ |
AssertTest.java | 94 NullPointerException npe = new NullPointerException(); local 96 Throwable throwable = expectThrows(Throwable.class, throwingRunnable(npe)); 98 assertSame(npe, throwable); 103 NullPointerException npe = new NullPointerException(); local 105 expectThrows(IOException.class, throwingRunnable(npe)); 110 NullPointerException npe = new NullPointerException("inner-message"); local 113 expectThrows(IOException.class, throwingRunnable(npe)); 115 assertSame(npe, ex.getCause()); 124 NullPointerException npe = new NullPointerException(); local 127 expectThrows(IOException.class, throwingRunnable(npe)); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
URISyntaxExceptionTest.java | 32 } catch (NullPointerException npe) { 39 } catch (NullPointerException npe) { 64 } catch (NullPointerException npe) { 71 } catch (NullPointerException npe) {
|
/art/test/106-exceptions2/src/ |
Main.java | 70 } catch (NullPointerException npe) { 77 } catch (NullPointerException npe) { 84 } catch (NullPointerException npe) { 98 } catch (NullPointerException npe) { 107 } catch (NullPointerException npe) { 126 } catch (NullPointerException npe) { 165 } catch (NullPointerException npe) { 173 } catch (NullPointerException npe) { 189 } catch (NullPointerException npe) {
|
/art/test/408-move-bug/src/ |
Main.java | 21 npe(); method 44 // Similar to `crash` but generated an NPE. 45 static void npe() { method in class:Main
|
/art/test/003-omnibus-opcodes/src/ |
InstField.java | 42 } catch (NullPointerException npe) { 48 } catch (NullPointerException npe) { 54 } catch (NullPointerException npe) { 60 } catch (NullPointerException npe) {
|
Monitor.java | 44 } catch (NullPointerException npe) {
|
Throw.java | 22 throw new NullPointerException("npe!"); 55 } catch (NullPointerException npe) { 77 } catch (NullPointerException npe) {
|
/art/test/081-hot-exceptions/src/ |
Main.java | 35 } catch (NullPointerException npe) {
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldPasswordAuthenticationTest.java | 31 } catch (NullPointerException npe) {
|
/art/test/008-exceptions/src/ |
Main.java | 75 } catch (NullPointerException npe) { 76 System.out.print("Got an NPE: "); 77 System.out.println(npe.getMessage()); 78 npe.printStackTrace(System.out); 92 } catch (NullPointerException npe) { 95 npe2.initCause(npe);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
FactoryConfigurationErrorTest.java | 82 NullPointerException npe = new NullPointerException(); local 83 fce = new FactoryConfigurationError(npe); 84 assertEquals(npe, fce.getException());
|
/art/test/127-checker-secondarydex/src/ |
Main.java | 38 } catch (NullPointerException npe) {
|
/art/test/671-npe-field-opts/src/ |
Main.java | 30 throw new Error("Expected NPE"); 37 throw new Error("Expected NPE"); 59 static void check(NullPointerException npe, int mainLine, int methodLine, String methodName) { 60 StackTraceElement[] trace = npe.getStackTrace();
|