Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 356 for NullPointerException (0.32 sec)

  1. android/guava/src/com/google/common/util/concurrent/WrappingExecutorService.java

            restoreInterruptIfIsInterruptedException(e);
            throwIfUnchecked(e);
            throw new RuntimeException(e);
          }
        };
      }
    
      /**
       * Wraps a collection of tasks.
       *
       * @throws NullPointerException if any element of {@code tasks} is null
       */
      private <T extends @Nullable Object> ImmutableList<Callable<T>> wrapTasks(
          Collection<? extends Callable<T>> tasks) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableMultimap.java

         *
         * @throws NullPointerException if {@code key}, {@code values}, or any element in {@code values}
         *     is null. The builder is left in an invalid state.
         */
        @CanIgnoreReturnValue
        public Builder<K, V> putAll(K key, Iterable<? extends V> values) {
          if (key == null) {
            throw new NullPointerException("null key in entry: null=" + Iterables.toString(values));
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 28.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImplTest.java

            paramMap.put("url_exclude_pattern", ".*");
    
            try {
                indexUpdateCallback.isUrlCrawlable(paramMap, null);
                fail("Expected NullPointerException for null URL");
            } catch (NullPointerException e) {
                // Expected behavior - the method doesn't handle null URLs
            }
        }
    
        public void test_isUrlCrawlable_nullUrlWithoutPattern() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 23:31:00 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableBiMap.java

        }
    
        /**
         * Associates all of the given map's keys and values in the built bimap. Duplicate keys or
         * values are not allowed, and will cause {@link #build} to fail.
         *
         * @throws NullPointerException if any key or value in {@code map} is null
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> putAll(Map<? extends K, ? extends V> map) {
          super.putAll(map);
          return this;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

        assertThrows(NullPointerException.class, () -> collection.addAll(containsNull));
        expectUnchanged();
        expectNullMissingWhenNullUnsupported(
            "Should not contain null after unsupported addAll(containsNull)");
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddAll_nullCollectionReference() {
        assertThrows(NullPointerException.class, () -> collection.addAll(null));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/exception/NullArgumentException.java

     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    /**
     * Exception thrown when an argument is null.
     *
     * Intended to be used instead of throwing {@link NullPointerException}.
     *
     * @author wyukawa
     */
    public class NullArgumentException extends ClIllegalArgumentException {
    
        /**
         *
         */
        private static final long serialVersionUID = 1L;
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt

            override fun contains(element: Protocol?): Boolean {
              if (element == null) throw NullPointerException()
              return super.contains(element)
            }
    
            override fun indexOf(element: Protocol?): Int {
              if (element == null) throw NullPointerException()
              return super.indexOf(element)
            }
          } as List<Protocol>
        val client =
          OkHttpClient
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

        assertSetCount(null, 1);
      }
    
      @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES)
      public void testSetCount_addNull_nullUnsupported() {
        assertThrows(NullPointerException.class, () -> setCountNoCheckReturnValue(null, 1));
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testSetCount_noOpNull_nullSupported() {
        try {
          assertSetCount(null, 0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java

            DataStoreException withNPE = new DataStoreException("NPE Error", new NullPointerException("Null value"));
            DataStoreException withCustom = new DataStoreException("Custom Error", new FessSystemException("System error"));
    
            assertTrue(withIOException.getCause() instanceof java.io.IOException);
            assertTrue(withNPE.getCause() instanceof NullPointerException);
            assertTrue(withCustom.getCause() instanceof FessSystemException);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        Map<Class<? extends Number>, Number> nullKey = singletonMap(null, (Number) 1.0);
        assertThrows(NullPointerException.class, () -> ImmutableClassToInstanceMap.copyOf(nullKey));
    
        Map<? extends Class<? extends Number>, Number> nullValue = singletonMap(Number.class, null);
        assertThrows(NullPointerException.class, () -> ImmutableClassToInstanceMap.copyOf(nullValue));
      }
    
      public void testCopyOf_imap_empty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top