- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 471 for NullPointerException (0.24 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
Smb2FlushRequest requestWithNull = new Smb2FlushRequest(mockConfig, null); byte[] buffer = new byte[256]; // Should throw NullPointerException when trying to copy null array assertThrows(NullPointerException.class, () -> { requestWithNull.writeBytesWireFormat(buffer, 0); }); } @Test @DisplayName("readBytesWireFormat should return 0")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
}); } @Test void constructor_shouldThrowExceptionWithNullSids() { // Act & Assert - Null SID array causes NPE when accessing length assertThrows(NullPointerException.class, () -> { new MsrpcLookupSids(mockPolicyHandle, null); }); } @Test void constructor_shouldSetCorrectSuperclassParameters() throws Exception { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
unicodeString.check(""); }); // The implementation has a bug - it doesn't handle null properly // It throws NullPointerException instead of returning null // This is a known issue in the production code assertThrows(NullPointerException.class, () -> { unicodeString.check(null); }); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java
try { assertEquals( "getOrDefault(null, def) should return default or throw", v3(), getMap().getOrDefault(null, v3())); } catch (NullPointerException tolerated) { } } @MapFeature.Require(ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testGetOrDefault_nonNullWhenNullContained() { initMapWithNullKey();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4.4K bytes - Viewed (0) -
guava/src/com/google/common/base/Predicate.java
* Objects.equal}{@code (a, b)} implies that {@code predicate.apply(a) == * predicate.apply(b))}. * </ul> * * @throws NullPointerException if {@code input} is null and this predicate does not accept null * arguments */ boolean apply(@ParametricNullness T input); /** * Indicates whether another object is equal to this predicate.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 18 15:22:00 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/DocumentUtilTest.java
public void test_encodeUrl_empty_and_null() { assertEquals("", DocumentUtil.encodeUrl("")); try { DocumentUtil.encodeUrl(null); fail("Should throw NullPointerException"); } catch (NullPointerException e) { // Expected } } public void test_encodeUrl_unicode() { assertEquals("%3F", DocumentUtil.encodeUrl("あ"));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java
@CollectionSize.Require(absent = ZERO) public void testSetValueNullUnsupported() { for (Entry<K, V> entry : getMap().entrySet()) { assertThrows(NullPointerException.class, () -> entry.setValue(null)); expectUnchanged(); } } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES}) @CollectionSize.Require(absent = ZERO)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectBuilderRequest.java
* * @param session the Maven session * @param source the source of the project to build * @return a new ProjectBuilderRequest * @throws NullPointerException if session or source is null */ @Nonnull static ProjectBuilderRequest build(@Nonnull Session session, @Nonnull Source source) { return builder()
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Apr 03 13:33:59 UTC 2025 - 11.7K bytes - Viewed (0) -
guava/src/com/google/common/base/MoreObjects.java
* @throws NullPointerException if both {@code first} and {@code second} are null * @since 18.0 (since 3.0 as {@code Objects.firstNonNull()}). */ public static <T> T firstNonNull(@Nullable T first, @Nullable T second) { if (first != null) { return first; } if (second != null) { return second; } throw new NullPointerException("Both parameters are null"); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 16.6K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
throw new FooException(); // ok, as long as it's not NullPointerException } public static void staticOneArgNullableCorrectlyThrowsOtherThanNpe(@Nullable String s) { throw new FooException(); // ok, as long as it's not NullPointerException } public static void staticOneArgCheckForNullThrowsNpe(@CheckForNull String s) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 47.7K bytes - Viewed (0)