- Sort Score
- Result 10 results
- Languages All
Results 441 - 450 of 471 for NullPointerException (0.07 sec)
-
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-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) -
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) -
android/guava/src/com/google/common/collect/Tables.java
* java.util.stream.Collectors#toMap(java.util.function.Function, java.util.function.Function, * BinaryOperator, java.util.function.Supplier)}, this Collector throws a {@code * NullPointerException} on null values returned from {@code valueFunction}, and treats nulls * returned from {@code mergeFunction} as removals of that row/column pair. * * @since 33.2.0 (available since 21.0 in guava-jre) */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 24.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/MediaTypeTest.java
} public void testWithParametersIterable_nullValue() { MediaType mediaType = MediaType.parse("text/plain"); assertThrows( NullPointerException.class, () -> mediaType.withParameters("a", Arrays.asList((String) null))); } public void testWithCharset() { assertEquals( MediaType.parse("text/plain; charset=utf-8"),
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.4K bytes - Viewed (0)