Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 471 for NullPointerException (0.52 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

        assertEquals(size + 1, multimap().size());
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
      public void testPutNullValue_unsupported() {
        assertThrows(NullPointerException.class, () -> multimap().put(k1(), null));
    
        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testPutNullKey() {
        int size = getNumElements();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/GsaConfigExceptionTest.java

        }
    
        public void test_stackTrace() {
            // Test that stack trace is properly preserved
            String message = "GSA error with stack trace";
            Throwable cause = new NullPointerException("NPE occurred");
            GsaConfigException exception = new GsaConfigException(message, cause);
    
            assertNotNull(exception.getStackTrace());
            assertTrue(exception.getStackTrace().length > 0);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

        assertEquals(0, getMultiset().remove(null, 2));
      }
    
      @CollectionFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_QUERIES)
      public void testRemove_nullForbidden() {
        assertThrows(NullPointerException.class, () -> getMultiset().remove(null, 2));
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAllIgnoresCount() {
        initThreeCopies();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

        assertEquals(0, getMultiset().remove(null, 2));
      }
    
      @CollectionFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_QUERIES)
      public void testRemove_nullForbidden() {
        assertThrows(NullPointerException.class, () -> getMultiset().remove(null, 2));
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAllIgnoresCount() {
        initThreeCopies();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/escape/Escaper.java

       *       input is not guaranteed to be restricted to the Basic Multilingual Plane (BMP).
       * </ul>
       *
       * @param string the literal string to be escaped
       * @return the escaped form of {@code string}
       * @throws NullPointerException if {@code string} is null
       * @throws IllegalArgumentException if {@code string} contains badly formed UTF-16 or cannot be
       *     escaped for any other reason
       */
      public abstract String escape(String string);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/Floats.java

       *
       * @param collection a collection of {@code Number} instances
       * @return an array containing the same values as {@code collection}, in the same order, converted
       *     to primitives
       * @throws NullPointerException if {@code collection} or any of its elements is null
       * @since 1.0 (parameter was {@code Collection<Float>} before 12.0)
       */
      public static float[] toArray(Collection<? extends Number> collection) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/EnumMultiset.java

        }
        return false;
      }
    
      /**
       * Returns {@code element} cast to {@code E}, if it actually is a nonnull E. Otherwise, throws
       * either a NullPointerException or a ClassCastException as appropriate.
       */
      private void checkIsE(Object element) {
        checkNotNull(element);
        if (!isActuallyE(element)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockConfig.getNetbiosScope()).thenReturn(null);
            // Configure OEM encoding to avoid NullPointerException
            when(mockConfig.getOemEncoding()).thenReturn("UTF-8");
        }
    
        @Test
        @DisplayName("Constructor with Configuration only should create empty Name instances")
        void testConstructorWithConfigOnly() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/UniAddressTest.java

                assertTrue(UniAddress.isDotQuadIP("999.999.999.999"));
            }
    
            @Test
            void shouldThrowExceptionForNullInput() {
                assertThrows(NullPointerException.class, () -> UniAddress.isDotQuadIP(null));
            }
    
            @Test
            void shouldThrowExceptionForEmptyInput() {
                assertThrows(StringIndexOutOfBoundsException.class, () -> UniAddress.isDotQuadIP(""));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/HandlerTest.java

            // This test verifies that when the system property is null, the handler
            // falls back to using default handlers without throwing NullPointerException.
            System.clearProperty("java.protocol.handler.pkgs");
            setupMockProtocolHandlers();
            URL url = new URL("http://example.com/resource");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top