Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 356 for NullPointerException (0.1 sec)

  1. android/guava/src/com/google/common/collect/Multiset.java

       * @throws IllegalArgumentException if {@code occurrences} is negative, or if this operation would
       *     result in more than {@link Integer#MAX_VALUE} occurrences of the element
       * @throws NullPointerException if {@code element} is null and this implementation does not permit
       *     null elements. Note that if {@code occurrences} is zero, the implementation may opt to
       *     return normally.
       */
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/SearchQueryExceptionTest.java

            // Test constructor with cause only
            Exception cause = new NullPointerException("Query object is null");
    
            SearchQueryException exception = new SearchQueryException(cause);
    
            assertEquals(cause, exception.getCause());
            assertEquals("java.lang.NullPointerException: Query object is null", exception.getMessage());
            assertTrue(exception instanceof FessSystemException);
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      }
    
      // This test assumes that the implementation does not support null keys.
      public void testRowNull() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertThrows(NullPointerException.class, () -> table.row(null));
      }
    
      public void testColumn() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertEquals(ImmutableMap.of("foo", 'a', "bar", 'b'), table.column(1));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/collect/testing/MinimalCollectionTest.java

                    // TODO: MinimalCollection should perhaps throw
                    for (Object element : elements) {
                      if (element == null) {
                        throw new NullPointerException();
                      }
                    }
                    return MinimalCollection.of(elements);
                  }
                })
            .named("MinimalCollection")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/MinimalCollectionTest.java

                    // TODO: MinimalCollection should perhaps throw
                    for (Object element : elements) {
                      if (element == null) {
                        throw new NullPointerException();
                      }
                    }
                    return MinimalCollection.of(elements);
                  }
                })
            .named("MinimalCollection")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

        }
    
        /**
         * Associates all of {@code map's} keys and values in the built map. Duplicate keys are not
         * allowed, and will cause {@link #build} to fail.
         *
         * @throws NullPointerException if any key or value in {@code map} is null
         * @throws ClassCastException if any value is not an instance of the type specified by its key
         */
        @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableCollection.java

         *
         * <p>Note that each builder class covariantly returns its own type from this method.
         *
         * @param element the element to add
         * @return this {@code Builder} instance
         * @throws NullPointerException if {@code element} is null
         */
        @CanIgnoreReturnValue
        public abstract Builder<E> add(E element);
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

        }
    
        public void test_constructor_withStatusCodeAndNullException() {
            // Test constructor with status code and null exception
            int statusCode = 400;
            NullPointerException cause = new NullPointerException();
    
            WebApiException exception = new WebApiException(statusCode, cause);
    
            assertEquals(statusCode, exception.getStatusCode());
            assertNull(exception.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt

      fun onlyRoute() = routes.single()
    
      @Throws(IOException::class)
      override fun authenticate(
        route: Route?,
        response: Response,
      ): Request? {
        if (route == null) throw NullPointerException("route == null")
        responses += response
        routes += route
        if (!schemeMatches(response) || credential == null) return null
        val header =
          when (response.code) {
            407 -> "Proxy-Authorization"
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/MoreObjectsTest.java

        Boolean b1 = true;
        Boolean b2 = MoreObjects.firstNonNull(b1, null);
        assertSame(b1, b2);
      }
    
      public void testFirstNonNull_throwsNullPointerException() {
        assertThrows(NullPointerException.class, () -> MoreObjects.firstNonNull(null, null));
      }
    
      // ToStringHelper's tests are in ToStringHelperTest
    
      @J2ktIncompatible
      @GwtIncompatible("NullPointerTester")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.1K bytes
    - Viewed (0)
Back to top