Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for NPE (0.01 sec)

  1. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

            testEnv.put("test.key", "test.value");
            ldapUser = new LdapUser(testEnv, "testuser");
    
            ComponentUtil.register(new SystemHelper(), "systemHelper");
    
            // Register a mock LdapManager to avoid NPE
            ComponentUtil.register(new LdapManager() {
                // Override methods that are called in tests
            }, "ldapManager");
        }
    
        @Override
        public void tearDown() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      public void testConstructor() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          assertBitEquals(0.0, aa.get(i));
        }
      }
    
      /** constructor with null array throws NPE */
      public void testConstructor2NPE() {
        double[] a = null;
        assertThrows(NullPointerException.class, () -> new AtomicDoubleArray(a));
      }
    
      /** constructor with array is of same size and has all elements */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/Types.java

        if (ownerType == null) {
          return newParameterizedType(rawType, arguments);
        }
        // ParameterizedTypeImpl constructor already checks, but we want to throw NPE before IAE
        checkNotNull(arguments);
        checkArgument(rawType.getEnclosingClass() != null, "Owner type for unenclosed %s", rawType);
        return new ParameterizedTypeImpl(ownerType, rawType, arguments);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

            } catch (NullPointerException e) {
                // Expected - WebApiException constructor cannot handle null exception
                assertTrue("Should get expected NPE message",
                        e.getMessage().contains("Cannot invoke \"java.lang.Exception.getMessage()\" because \"e\" is null"));
            }
        }
    
        public void test_setError_withEmptyMessage() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

        // Pretend the comparator can compare anything. If it turns out it can't
        // compare a and b, we should get a CCE or NPE on the subsequent line. Only methods
        // that are spec'd to throw CCE and NPE should call this.
        @SuppressWarnings({"unchecked", "nullness"})
        Comparator<@Nullable Object> unsafeComparator = (Comparator<@Nullable Object>) comparator;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SetViewTest.java

      }
    
      public void testEquals_otherSetContainsThrows() {
        new EqualsTester()
            .addEqualityGroup(new SetContainsThrows())
            .addEqualityGroup(intersection(singleton(null), singleton(null))) // NPE
            .addEqualityGroup(intersection(singleton(0), singleton(0))) // CCE
            .testEquals();
      }
    
      /** Returns a {@link Set} with a {@link Set#size()} of {@code size}. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Types.java

        if (ownerType == null) {
          return newParameterizedType(rawType, arguments);
        }
        // ParameterizedTypeImpl constructor already checks, but we want to throw NPE before IAE
        checkNotNull(arguments);
        checkArgument(rawType.getEnclosingClass() != null, "Owner type for unenclosed %s", rawType);
        return new ParameterizedTypeImpl(ownerType, rawType, arguments);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/query/QueryFieldConfigTest.java

            // When highlightedFields is null, the method should handle it gracefully
            // or throw an exception. Test the actual behavior.
            queryFieldConfig.highlightedFields(stream -> {
                // If it doesn't throw NPE, it should provide an empty stream
                assertEquals(0, stream.count());
            });
        }
    
        public void test_init_withInvalidDefaultFields() {
            // Test with invalid default field formats
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Streams.java

       * nulls as long as the *last* element is *not* null.
       *
       * (To "go out of its way," the method tracks a `set` bit so that it can distinguish "the final
       * split has a last element of null, so throw NPE" from "the final split was empty, so look for an
       * element in the prior one.")
       */
      public static <T> java.util.Optional<T> findLast(Stream<T> stream) {
        final class OptionalState {
          boolean set = false;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 37K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/StandardTable.java

          boolean changed = false;
          Iterator<Map<C, V>> iterator = backingMap.values().iterator();
          while (iterator.hasNext()) {
            Map<C, V> map = iterator.next();
            // map.keySet().removeAll(c) can throw a NPE when map is a TreeMap with
            // natural ordering and c contains a null.
            if (Iterators.removeAll(map.keySet().iterator(), c)) {
              changed = true;
              if (map.isEmpty()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 30.2K bytes
    - Viewed (0)
Back to top