Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 344 for NullPointerException (0.37 sec)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(2, (int) result.next());
        assertThrows(NullPointerException.class, () -> result.hasNext());
        assertThrows(NullPointerException.class, () -> result.next());
        // There is no way to get "through" to the 3.  Buh-bye
      }
    
      public void testConcatVarArgsContainingNull() {
        assertThrows(
            NullPointerException.class,
            () ->
                Iterators.concat(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

                return "RAW";
              }
            };
        try {
          Hashing.hmacMd5(badKey);
          fail();
        } catch (IllegalArgumentException expected) {
        } catch (NullPointerException toleratedOnAndroid) {
          // TODO(cpovirk): In an ideal world, we'd check here that we're running on Android.
        }
      }
    
      public void testEmptyInputs() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. android/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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. CHANGELOG.md

     *  Fix: Don't close a `Deflater` while we're still using it to compress a web socket message. We
        had a severe bug where web sockets were closed on the wrong thread, which caused
        `NullPointerException` crashes in `Deflater`.
    
     *  Fix: Don't crash after a web socket fails its connection upgrade. We incorrectly released
        the web socket's connections back to the pool before their resources were cleaned up.
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:31:39 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteSource.java

       * possible.
       *
       * @param sources the sources to concatenate
       * @return a {@code ByteSource} containing the concatenated data
       * @throws NullPointerException if any of {@code sources} is {@code null}
       * @since 15.0
       */
      public static ByteSource concat(Iterator<? extends ByteSource> sources) {
        return concat(ImmutableList.copyOf(sources));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/Chars.java

       *
       * @param collection a collection of {@code Character} objects
       * @return an array containing the same values as {@code collection}, in the same order, converted
       *     to primitives
       * @throws NullPointerException if {@code collection} or any of its elements is null
       */
      public static char[] toArray(Collection<Character> collection) {
        if (collection instanceof CharArrayAsList) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        return asImmutableList(array);
      }
    
      private static <E> List<E> nullCheckedList(Object... array) {
        for (int i = 0, len = array.length; i < len; i++) {
          if (array[i] == null) {
            throw new NullPointerException("at index " + i);
          }
        }
        @SuppressWarnings("unchecked")
        E[] castedArray = (E[]) array;
        return Arrays.asList(castedArray);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 22:14:46 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *   <li>All visible static methods are checked such that passing null for any parameter that's
       *       not annotated nullable (according to the rules of {@link NullPointerTester}) should throw
       *       {@link NullPointerException}.
       *   <li>If there is any visible constructor or visible static factory method declared by the
       *       class, all visible instance methods will be checked too using the instance created by
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(2, (int) result.next());
        assertThrows(NullPointerException.class, () -> result.hasNext());
        assertThrows(NullPointerException.class, () -> result.next());
        // There is no way to get "through" to the 3.  Buh-bye
      }
    
      public void testConcatVarArgsContainingNull() {
        assertThrows(
            NullPointerException.class,
            () ->
                Iterators.concat(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  10. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top