- Sort Score
- Result 10 results
- Languages All
Results 441 - 450 of 471 for NullPointerException (0.12 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java
List<E> extremeValues = new ArrayList<>(); // nulls are usually out of bounds for a subset, so ban them altogether for (Object o : elements) { if (o == null) { throw new NullPointerException(); } } // prepare extreme values to be filtered out of view E firstExclusive = delegate.belowSamplesGreater(); E lastExclusive = delegate.aboveSamplesLesser();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jan 30 16:59:10 UTC 2025 - 18.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Functions.java
/** * A function equivalent to the method reference {@code Object::toString}. The function simply * invokes {@code toString} on its argument and returns the result. It throws a {@link * NullPointerException} on null input. * * <p><b>Warning:</b> The returned function may not be <i>consistent with equals</i> (as * documented at {@link Function#apply}). For example, this function yields different results for
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 17:32:30 UTC 2025 - 15.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
@Override public String toString() { throw new NullPointerException(); } }); assertThat(orig.toString()) .contains( "[status=PENDING, setFuture=[Exception thrown from implementation: class" + " java.lang.NullPointerException]]"); } @AndroidIncompatible // b/391667564: crashes from stack overflows
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
* We don't permit nulls, but we wrap every comparator with nullsFirst(). * Why? We want for queries like containsKey(null) to return false, but the * GWT SortedMap implementation that we delegate to throws * NullPointerException if the comparator does. Since our construction * methods ensure that null is never present in the map, it's OK for the * comparator to look for it wherever it wants. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
request.setData(null, 0, 100); byte[] buffer = new byte[256]; // Should handle gracefully or throw appropriate exception assertThrows(NullPointerException.class, () -> request.writeBytesWireFormat(buffer, 0)); } @Test @DisplayName("Should handle data offset beyond array bounds") void testDataOffsetBeyondBounds() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
} } } } public void testToArray_withNull() { List<@Nullable Character> list = Arrays.asList((char) 0, (char) 1, null); assertThrows(NullPointerException.class, () -> Chars.toArray(list)); } @J2ktIncompatible // b/285319375 public void testAsList_isAView() { char[] array = {(char) 0, (char) 1}; List<Character> list = Chars.asList(array);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.9K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Joiner.java
* converted to strings using {@link Object#toString()} before being appended. * * <p>If neither {@link #skipNulls()} nor {@link #useForNull(String)} is specified, the joining * methods will throw {@link NullPointerException} if any given element is null. * * <p><b>Warning: joiner instances are always immutable</b>; a configuration method such as {@code
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 19.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
@Override public String toString() { throw new NullPointerException(); } }); assertThat(orig.toString()) .contains( "[status=PENDING, setFuture=[Exception thrown from implementation: class" + " java.lang.NullPointerException]]"); } @AndroidIncompatible // b/391667564: crashes from stack overflows
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java
// If it doesn't crash, it should still return a valid hash assertNotNull(nullResult); assertEquals(128, nullResult.length()); } catch (NullPointerException e) { // This is also acceptable behavior } } public void test_generateId_withDataMap_edgeCases() { // Test with empty data map
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 26.6K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
Comparable<Object> comparable = ArbitraryInstances.get(Comparable.class); assertEquals(0, comparable.compareTo(comparable)); assertTrue(comparable.compareTo("") > 0); assertThrows(NullPointerException.class, () -> comparable.compareTo(null)); } public void testGet_array() { assertThat(ArbitraryInstances.get(int[].class)).isEmpty(); assertThat(ArbitraryInstances.get(Object[].class)).isEmpty();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 22.3K bytes - Viewed (0)