- Sort Score
- Result 10 results
- Languages All
Results 321 - 330 of 474 for NullPointerException (0.24 sec)
-
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) -
api/maven-api-core/src/main/java/org/apache/maven/api/Session.java
* @return the derived session * @throws NullPointerException if {@code repositories} is null */ @Nonnull Session withRemoteRepositories(@Nonnull List<RemoteRepository> repositories); /** * Register the given listener which will receive all events. * * @param listener the listener to register * @throws NullPointerException if {@code listener} is null */Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Jul 03 14:18:26 UTC 2025 - 36.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
android/guava-tests/test/com/google/common/collect/RangeTest.java
public void testEncloseAll_nullValue() { List<@Nullable Integer> nullFirst = Lists.newArrayList(null, 0); assertThrows(NullPointerException.class, () -> Range.encloseAll((List<Integer>) nullFirst)); List<@Nullable Integer> nullNotFirst = Lists.newArrayList(0, null); assertThrows(NullPointerException.class, () -> Range.encloseAll((List<Integer>) nullNotFirst)); } public void testEquivalentFactories() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
* * @param collection a collection of {@code Boolean} objects * @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 */ public static boolean[] toArray(Collection<Boolean> collection) { if (collection instanceof BooleanArrayAsList) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 20.5K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Booleans.java
* * @param collection a collection of {@code Boolean} objects * @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 */ public static boolean[] toArray(Collection<Boolean> collection) { if (collection instanceof BooleanArrayAsList) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java
fail("Should throw JobProcessingException"); } catch (JobProcessingException e) { assertTrue(e.getMessage().contains("Thumbnail Process terminated.")); } catch (NullPointerException e) { // May occur if ServletContext is not fully initialized // This is acceptable in test environment } } // Test executeThumbnailGenerator with timeout
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 18.8K bytes - Viewed (0)