Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 167 for NullPointerException (0.15 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        super.setUp();
    
        empty = new Target(emptyCollection(), "empty");
        /*
         * We test that nullSingleton.retainAll(disjointList) does NOT throw a
         * NullPointerException when disjointList does not, so we can't use
         * MinimalCollection, which throws NullPointerException on calls to
         * contains(null).
         */
        List<E> disjointList = asList(e3(), e4());
        disjoint = new Target(disjointList, "disjoint");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

                executionOrder.clear();
            }
        }
    
        // Test class that causes NullPointerException
        private static class NullPointerScoreBooster extends ScoreBooster {
            @Override
            public long process() {
                // This will cause NullPointerException when auto-unboxing
                Long nullValue = null;
                return nullValue;
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            try (InputStream stream = cache.getInputStream()) {
                fail("Expected NullPointerException for null data");
            } catch (NullPointerException e) {
                // Expected - cannot create ByteArrayInputStream with null
            } catch (IOException e) {
                fail("Expected NullPointerException, not IOException");
            }
        }
    
        @Test
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TableCollectorsTest.java

          assertThrows(
              NullPointerException.class,
              () -> Stream.of(immutableCell("one", "uno", 1)).collect(collector));
        }
        {
          Collector<Cell<String, String, Integer>, ?, ImmutableTable<String, String, Integer>>
              collector = toImmutableTable(Cell::getRowKey, Cell::getColumnKey, Cell::getValue);
          assertThrows(
              NullPointerException.class,
              () ->
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

          assertThrows(NullPointerException.class, () -> builder.add((String) null));
        }
    
        {
          ImmutableSet.Builder<String> builder = this.<String>builder();
          assertThrows(NullPointerException.class, () -> builder.add((String[]) null));
        }
    
        {
          ImmutableSet.Builder<String> builder = this.<String>builder();
          assertThrows(NullPointerException.class, () -> builder.add("a", (String) null));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        ImmutableList.Builder<String> builder = ImmutableList.builder();
        assertThrows(NullPointerException.class, () -> builder.add((String) null));
    
        assertThrows(NullPointerException.class, () -> builder.add((String[]) null));
    
        assertThrows(NullPointerException.class, () -> builder.add("a", null, "b"));
      }
    
      public void testBuilderAddAllHandlesNullsCorrectly() {
        {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableList.java

       * preferable mainly for consistency and maintainability of your code.
       *
       * @throws NullPointerException if the element is null
       */
      public static <E> ImmutableList<E> of(E e1) {
        return construct(e1);
      }
    
      /**
       * Returns an immutable list containing the given elements, in order.
       *
       * @throws NullPointerException if any element is null
       */
      public static <E> ImmutableList<E> of(E e1, E e2) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        Set<Entry<K, V>> entrySet = map.entrySet();
        if (supportsRemove) {
          assertThrows(NullPointerException.class, () -> entrySet.removeAll(null));
        } else {
          try {
            entrySet.removeAll(null);
            fail("Expected UnsupportedOperationException or NullPointerException.");
          } catch (UnsupportedOperationException | NullPointerException e) {
            // Expected.
          }
        }
        assertInvariants(map);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        ImmutableList.Builder<String> builder = ImmutableList.builder();
        assertThrows(NullPointerException.class, () -> builder.add((String) null));
    
        assertThrows(NullPointerException.class, () -> builder.add((String[]) null));
    
        assertThrows(NullPointerException.class, () -> builder.add("a", null, "b"));
      }
    
      public void testBuilderAddAllHandlesNullsCorrectly() {
        {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       * fail to insert an element only by throwing an exception.
       *
       * @throws NullPointerException if the specified element is null
       */
      @CanIgnoreReturnValue
      @Override
      public boolean offer(E e) {
        if (e == null) throw new NullPointerException();
        Monitor monitor = this.monitor;
        if (monitor.enterIf(notFull)) {
          try {
            insert(e);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top