- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 561 for NullPointerException (0.17 seconds)
-
guava/src/com/google/common/collect/ImmutableSortedMap.java
* comparable. * * @throws ClassCastException if the keys in {@code map} are not mutually comparable * @throws NullPointerException if any key or value in {@code map} is null * @throws IllegalArgumentException if any two keys are equal according to their natural ordering */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 52.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java
} @Test public void test_constructor_withStatusCodeAndNullException() { // Test constructor with status code and null exception int statusCode = 400; NullPointerException cause = new NullPointerException(); WebApiException exception = new WebApiException(statusCode, cause); assertEquals(statusCode, exception.getStatusCode()); assertNull(exception.getMessage());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 9.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java
expectAdded((E) null); } @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES) public void testOffer_nullUnsupported() { assertThrows(NullPointerException.class, () -> getQueue().offer(null)); expectUnchanged(); expectNullMissingWhenNullUnsupported("Should not contain null after unsupported offer(null)"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.3K bytes - Click Count (0) -
android/guava/src/com/google/common/base/MoreObjects.java
* @throws NullPointerException if both {@code first} and {@code second} are null * @since 18.0 (since 3.0 as {@code Objects.firstNonNull}). */ public static <T> T firstNonNull(@Nullable T first, @Nullable T second) { if (first != null) { return first; } if (second != null) { return second; } throw new NullPointerException("Both parameters are null"); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 05 17:38:41 GMT 2026 - 16.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableCollection.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 18.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
@Test @DisplayName("null handle throws NPE") void nullHandle() { assertThrows(NullPointerException.class, () -> new SmbPipeInputStream(null, tree)); } @Test @DisplayName("null tree throws NPE") void nullTree() { assertThrows(NullPointerException.class, () -> new SmbPipeInputStream(handle, null)); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Interner.java
* original interned instance was garbage-collected. * * <p><b>Warning:</b> do not use with mutable objects. * * @throws NullPointerException if {@code sample} is null */ E intern(E sample);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2K bytes - Click Count (0) -
src/test/java/org/codelibs/core/exception/SRuntimeExceptionTest.java
System.out.println(ex.getMessage()); } /** * @throws Exception */ @Test public void testGetCause() throws Exception { final Throwable t = new NullPointerException("test"); final ClRuntimeException ex = new ClRuntimeException("ECL0017", asArray(t), t); assertThat(ex.getCause(), is(t)); ex.printStackTrace(); }
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
SmbRandomAccessFile raf = newInstance("rw", false, true, false); assertThrows(NullPointerException.class, () -> raf.read((byte[]) null)); assertThrows(NullPointerException.class, () -> raf.writeBytes(null)); assertThrows(NullPointerException.class, () -> raf.writeChars(null)); assertThrows(NullPointerException.class, () -> raf.writeUTF(null)); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
} @Test public void test_processThreadDump_withNullConsumer() { try { ThreadDumpUtil.processThreadDump(null); fail("Should throw NullPointerException for null consumer"); } catch (NullPointerException e) { // Expected behavior } } @Test public void test_processThreadDump_multipleThreads() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 15.6K bytes - Click Count (0)