- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 228 for NullPointerException (0.35 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java
super.setUp(); empty = new Target(emptyCollection(), "empty"); /* * We test that nullSingleton.retainAll(disjointList) does NOT throw a * NullPointerException when disjointList does not, so we can't use * MinimalCollection, which throws NullPointerException on calls to * contains(null). */ List<E> disjointList = asList(e3(), e4()); disjoint = new Target(disjointList, "disjoint");
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 10.7K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ModelTest.java
@Test void testPropertiesClear() { // Test for issue #11552: NullPointerException when clearing properties Model model = new Model(); model.addProperty("key1", "value1"); model.addProperty("key2", "value2"); assertEquals(2, model.getProperties().size()); // This should not throw NullPointerException model.getProperties().clear();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 16 08:09:30 GMT 2025 - 2.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
@MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) public void testPutAllNullValueNullLast_unsupported() { int size = getNumElements(); assertThrows( NullPointerException.class, () -> multimap().putAll(k3(), newArrayList(v3(), null))); Collection<V> values = multimap().get(k3()); if (values.size() == 0) { expectUnchanged();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 7.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ReflectionFreeAssertThrows.java
.put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException) .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException) .put(NullPointerException.class, e -> e instanceof NullPointerException) .put(NumberFormatException.class, e -> e instanceof NumberFormatException) .put(RuntimeException.class, e -> e instanceof RuntimeException)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
assertThrows(NullPointerException.class, () -> builder.add((String) null)); } { ImmutableSet.Builder<String> builder = this.<String>builder(); assertThrows(NullPointerException.class, () -> builder.add((String[]) null)); } { ImmutableSet.Builder<String> builder = this.<String>builder(); assertThrows(NullPointerException.class, () -> builder.add("a", (String) null));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 18.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
Set<Entry<K, V>> entrySet = map.entrySet(); if (supportsRemove) { assertThrows(NullPointerException.class, () -> entrySet.removeAll(null)); } else { try { entrySet.removeAll(null); fail("Expected UnsupportedOperationException or NullPointerException."); } catch (UnsupportedOperationException | NullPointerException e) { // Expected. } } assertInvariants(map); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 43.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableList.java
* * @throws NullPointerException if the element is null */ public static <E> ImmutableList<E> of(E e1) { return new SingletonImmutableList<>(e1); } /** * Returns an immutable list containing the given elements, in order. * * @throws NullPointerException if any element is null */ public static <E> ImmutableList<E> of(E e1, E e2) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 30.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
assertThrows(NullPointerException.class, () -> builder.put(null, 1)); assertThrows(NullPointerException.class, () -> builder.putAll(null, Arrays.asList(1, 2, 3))); assertThrows(NullPointerException.class, () -> builder.putAll(null, 1, 2, 3)); assertThrows( NullPointerException.class, () -> builder.putAll((Multimap<String, Integer>) toPut)); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 25.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
assertThrows(NullPointerException.class, () -> builder.add((String) null)); } public void testBuilderAddAllHandlesNullsCorrectly() { { ImmutableSortedMultiset.Builder<String> builder = ImmutableSortedMultiset.naturalOrder(); assertThrows(NullPointerException.class, () -> builder.addAll((Collection<String>) null)); } {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 22.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/JoinerTest.java
checkResult(J, OVERREPORTING_SIZE_LIST, "1-2-3"); assertThrows(NullPointerException.class, () -> J.join(iterableNull)); assertThrows(NullPointerException.class, () -> J.join(iterable1Null2)); assertThrows(NullPointerException.class, () -> J.join(iterableNull.iterator())); assertThrows(NullPointerException.class, () -> J.join(iterable1Null2.iterator())); } public void testOnCharOverride() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 12.7K bytes - Click Count (0)