- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 426 for NullPointerException (1.3 sec)
-
android/guava-testlib/test/com/google/common/collect/testing/MinimalCollectionTest.java
// TODO: MinimalCollection should perhaps throw for (Object element : elements) { if (element == null) { throw new NullPointerException(); } } return MinimalCollection.of(elements); } }) .named("MinimalCollection")Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Jan 25 16:19:30 UTC 2025 - 1.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
assertNotNull(nullBufferResponse); // But trying to read data should cause NullPointerException byte[] buffer = new byte[10]; assertThrows(NullPointerException.class, () -> nullBufferResponse.readDataWireFormat(buffer, 0, 5)); } @Test void testReadDataWireFormatWithNegativeLength() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java
} // This test assumes that the implementation does not support null keys. public void testRowNull() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertThrows(NullPointerException.class, () -> table.row(null)); } public void testColumn() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertEquals(ImmutableMap.of("foo", 'a', "bar", 'b'), table.column(1));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
// Arrange: null reference to the interface SmbRenewableCredentials creds = null; // Act + Assert: invoking renew() on null triggers NullPointerException assertThrows(NullPointerException.class, () -> { // Intentional NPE through dereference of a null interface reference creds.renew(); }); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/MoreObjectsTest.java
Boolean b1 = true; Boolean b2 = MoreObjects.firstNonNull(b1, null); assertSame(b1, b2); } public void testFirstNonNull_throwsNullPointerException() { assertThrows(NullPointerException.class, () -> MoreObjects.firstNonNull(null, null)); } // ToStringHelper's tests are in ToStringHelperTest @J2ktIncompatible @GwtIncompatible("NullPointerTester")Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/MoreObjectsTest.java
Boolean b1 = true; Boolean b2 = MoreObjects.firstNonNull(b1, null); assertSame(b1, b2); } public void testFirstNonNull_throwsNullPointerException() { assertThrows(NullPointerException.class, () -> MoreObjects.firstNonNull(null, null)); } // ToStringHelper's tests are in ToStringHelperTest @J2ktIncompatible @GwtIncompatible("NullPointerTester")Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt
fun onlyRoute() = routes.single() @Throws(IOException::class) override fun authenticate( route: Route?, response: Response, ): Request? { if (route == null) throw NullPointerException("route == null") responses += response routes += route if (!schemeMatches(response) || credential == null) return null val header = when (response.code) { 407 -> "Proxy-Authorization"
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractTableReadTest.java
} // This test assumes that the implementation does not support null keys. public void testRowNull() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertThrows(NullPointerException.class, () -> table.row(null)); } public void testColumn() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertEquals(ImmutableMap.of("foo", 'a', "bar", 'b'), table.column(1));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multiset.java
* @throws IllegalArgumentException if {@code occurrences} is negative, or if this operation would * result in more than {@link Integer#MAX_VALUE} occurrences of the element * @throws NullPointerException if {@code element} is null and this implementation does not permit * null elements. Note that if {@code occurrences} is zero, the implementation may opt to * return normally. */ @CanIgnoreReturnValueRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 19.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
@DisplayName("Reading with null array throws NullPointerException") void readNullArrayThrowsException() { // Create stream with valid message header and data byte[] data = new byte[] { 1 }; InputStream in = new ByteArrayInputStream(concat(messageHeader(1), data)); SocketInputStream sis = new SocketInputStream(in); // Should throw NullPointerException when reading with null arrayRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0)