Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for NullPointerException (0.06 sec)

  1. android/guava/src/com/google/common/base/Preconditions.java

       * @return the non-null reference that was validated
       * @throws NullPointerException if {@code reference} is null
       * @see Verify#verifyNotNull Verify.verifyNotNull()
       */
      @CanIgnoreReturnValue
      public static <T> T checkNotNull(@Nullable T reference) {
        if (reference == null) {
          throw new NullPointerException();
        }
        return reference;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 10 22:11:00 UTC 2025
    - 53K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

       * set is serializable.
       *
       * @param elements the elements that the set should contain
       * @return a new thread-safe set containing those elements (minus duplicates)
       * @throws NullPointerException if {@code elements} or any of its contents is null
       * @since 15.0
       */
      public static <E> Set<E> newConcurrentHashSet(Iterable<? extends E> elements) {
        Set<E> set = newConcurrentHashSet();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_3x.md

    ## Version 3.14.4
    
    _2019-09-29_
    
     *  Fix: Cancel calls that fail due to unexpected exceptions. We had a bug where an enqueued call
        would never call back if it crashed with an unchecked throwable, such as a
        `NullPointerException` or `OutOfMemoryError`. We now call `Callback.onFailure()` with an
        `IOException` that reports the call as canceled. The triggering exception is still delivered to
        the thread's `UncaughtExceptionHandler`.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  4. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  5. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterators.java

       * necessary.
       *
       * <p>The returned iterator supports {@code remove()} when the corresponding input iterator
       * supports it.
       *
       * @throws NullPointerException if any of the provided iterators is null
       */
      @SafeVarargs
      public static <T extends @Nullable Object> Iterator<T> concat(Iterator<? extends T>... inputs) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multimaps.java

       * @return {@code ImmutableListMultimap} mapping the result of evaluating the function {@code
       *     keyFunction} on each value in the input collection to that value
       * @throws NullPointerException if any element of {@code values} is {@code null}, or if {@code
       *     keyFunction} produces {@code null} for any key
       */
      public static <K, V> ImmutableListMultimap<K, V> index(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Multimaps.java

       * @return {@code ImmutableListMultimap} mapping the result of evaluating the function {@code
       *     keyFunction} on each value in the input collection to that value
       * @throws NullPointerException if any element of {@code values} is {@code null}, or if {@code
       *     keyFunction} produces {@code null} for any key
       */
      public static <K, V> ImmutableListMultimap<K, V> index(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.9K bytes
    - Viewed (0)
Back to top