HomeSort by relevance Sort by last modified time
    Searched defs:npe (Results 1 - 25 of 26) sorted by null

1 2

  /art/test/008-exceptions/src/
Main.java 24 } catch (NullPointerException npe) {
25 System.out.print("Got an NPE: ");
26 System.out.println(npe.getMessage());
27 npe.printStackTrace();
37 } catch (NullPointerException npe) {
40 npe2.initCause(npe);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
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());
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());
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());
IllegalArgumentExceptionTest.java 67 NullPointerException npe = new NullPointerException(); local
69 npe);
71 assertSame(npe, e.getCause());
  /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...]