Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 471 for NullPointerException (0.06 sec)

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

      public void testGetNullAbsent() {
        assertEmpty(multimap().get(null));
      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES)
      public void testGetNullForbidden() {
        assertThrows(NullPointerException.class, () -> multimap().get(null));
      }
    
      @MapFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testGetWithNullValue() {
        initMultimapWithNullValue();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MoreCollectors.java

      /**
       * A collector that converts a stream of zero or one elements to an {@code Optional}.
       *
       * @throws IllegalArgumentException if the stream consists of two or more elements.
       * @throws NullPointerException if any element in the stream is {@code null}.
       * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be
       *     {@code null}) and returns {@code Optional.empty()} if it has none.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

        assertNull(multimap().asMap().get(null));
      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES)
      public void testAsMapGetNullKeyUnsupported() {
        assertThrows(NullPointerException.class, () -> multimap().asMap().get(null));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testAsMapRemove() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/DialectVersionTest.java

            assertThrows(IllegalArgumentException.class, () -> {
                DialectVersion.valueOf("INVALID");
            });
    
            // Test valueOf with null
            assertThrows(NullPointerException.class, () -> {
                DialectVersion.valueOf(null);
            });
        }
    
        @Test
        @DisplayName("Should maintain SMB2 flag consistency")
        void testSMB2FlagConsistency() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashBasedTable.java

      }
    
      /**
       * Creates a {@code HashBasedTable} with the same mappings as the specified table.
       *
       * @param table the table to copy
       * @throws NullPointerException if any of the row keys, column keys, or values in {@code table} is
       *     null
       */
      public static <R, C, V> HashBasedTable<R, C, V> create(
          Table<? extends R, ? extends C, ? extends V> table) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/HashBasedTable.java

      }
    
      /**
       * Creates a {@code HashBasedTable} with the same mappings as the specified table.
       *
       * @param table the table to copy
       * @throws NullPointerException if any of the row keys, column keys, or values in {@code table} is
       *     null
       */
      public static <R, C, V> HashBasedTable<R, C, V> create(
          Table<? extends R, ? extends C, ? extends V> table) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/HandlerTest.java

            assertTrue(conn instanceof SmbFile);
        }
    
        @Test
        @DisplayName("openConnection throws NPE for null URL")
        void testOpenConnectionWithNullUrl() {
            // Act & Assert
            assertThrows(NullPointerException.class, () -> handler.openConnection(null));
        }
    
        @Test
        @DisplayName("URL created with handler parses SMB URL correctly")
        void testUrlCreationWithHandler() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

            // Arrange
            SmbBasicFileInfo info = null;
    
            // Act & Assert: attempting to call any method on null should throw NPE
            Assertions.assertThrows(NullPointerException.class, () -> {
                // Intentionally dereference null to validate exception behavior
                // This checks that callers must handle null references defensively
                info.getSize();
            });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

            this.sameSite = sameSite
          }
    
        fun build(): Cookie =
          Cookie(
            name ?: throw NullPointerException("builder.name == null"),
            value ?: throw NullPointerException("builder.value == null"),
            expiresAt,
            domain ?: throw NullPointerException("builder.domain == null"),
            path,
            secure,
            httpOnly,
            persistent,
            hostOnly,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        @DisplayName("Should throw exception for null encryption key")
        void testNullEncryptionKey() {
            // When/Then
            assertThrows(NullPointerException.class, () -> {
                new Smb2EncryptionContext(1, DialectVersion.SMB311, null, testDecryptionKey);
            }, "Should throw NullPointerException for null encryption key");
        }
    
        @Test
        @DisplayName("Should throw exception for null decryption key")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
Back to top