- Sort Score
- Result 10 results
- Languages All
Results 391 - 400 of 471 for NullPointerException (0.09 sec)
-
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
// Arrange nodeStatusRequest = new NodeStatusRequest(mockConfig, null); byte[] dst = new byte[100]; // Act & Assert assertThrows(NullPointerException.class, () -> { nodeStatusRequest.writeBodyWireFormat(dst, 0); }); } @Test void multipleWriteBodyWireFormat_shouldProduceSameResult() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ObjectArrays.java
// creation cost. @CanIgnoreReturnValue static Object checkElementNotNull(Object element, int index) { if (element == null) { throw new NullPointerException("at index " + index); } return element; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
@Test @DisplayName("Should handle null buffer in decode") void testNullBuffer() { FileFsSizeInformation info = new FileFsSizeInformation(); assertThrows(NullPointerException.class, () -> { info.decode(null, 0, 0); }); } @Test @DisplayName("Should handle insufficient buffer length")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
assertEquals(0, cache.size()); entry.setValue(3); assertEquals(1, cache.size()); assertEquals(3, cache.getIfPresent(1)); checkValidState(cache); assertThrows(NullPointerException.class, () -> entry.setValue(null)); checkValidState(cache); } } /* ---------------- Local utilities -------------- */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 15.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSetMultimap.java
* safe to do so. The exact circumstances under which a copy will or will not be performed are * undocumented and subject to change. * * @throws NullPointerException if any key or value in {@code multimap} is null */ public static <K, V> ImmutableSetMultimap<K, V> copyOf( Multimap<? extends K, ? extends V> multimap) { return copyOf(multimap, null); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BooleansTest.java
} } } } public void testToArray_withNull() { List<@Nullable Boolean> list = Arrays.asList(false, true, null); assertThrows(NullPointerException.class, () -> Booleans.toArray(list)); } @SuppressWarnings({"CollectionIsEmptyTruth", "CollectionIsNotEmptyTruth"}) public void testAsListIsEmpty() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java
fail("Expected exception for null callback"); } catch (Exception e) { // Expected - null callback should cause exception assertTrue(e instanceof NullPointerException); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 15.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
} /** * Creates a new {@code AtomicDoubleArray} with the same length as, and all elements copied from, * the given array. * * @param array the array to copy elements from * @throws NullPointerException if array is null */ public AtomicDoubleArray(double[] array) { int len = array.length; long[] longArray = new long[len]; for (int i = 0; i < len; i++) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
@DisplayName("Null handle causes NPE on watch() (invalid input)") void constructor_nullHandle_watch_throwsNPE() { SmbWatchHandleImpl sut = new SmbWatchHandleImpl(null, 0, false); assertThrows(NullPointerException.class, () -> { sut.watch(); }); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
guava/src/com/google/common/base/Predicates.java
* * <ul> * <li>The {@link Predicate} returned by this method is {@link Serializable}. * <li>The {@link Predicate} returned by this method catches {@link ClassCastException} and * {@link NullPointerException}. * <li>Code that chains multiple predicates together (especially negations) may be more readable * using this method. For example, {@code not(in(target))} is generally more readable than
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 26.6K bytes - Viewed (0)