/dalvik/tests/007-exceptions/src/ |
Main.java | 24 } catch (NullPointerException npe) { 25 System.out.print("Got an NPE: "); 26 System.out.println(npe.getMessage()); 27 npe.printStackTrace(); 34 } catch (NullPointerException npe) { 37 npe2.initCause(npe);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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...] |
/libcore/luni/src/test/java/tests/api/javax/xml/parsers/ |
FactoryConfigurationErrorTest.java | 82 NullPointerException npe = new NullPointerException(); local 83 fce = new FactoryConfigurationError(npe); 84 assertEquals(npe, fce.getException());
|
/prebuilt/common/ant/ |
ant.jar | |
/prebuilt/common/groovy/ |
groovy-all-1.7.0.jar | |