- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 561 for NullPointerException (0.29 seconds)
-
api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java
* </ul> * * @param relative path to resolve relative to this source * @return the resolved source, or null if resolution not possible * @throws NullPointerException if relative is null */ @Nullable Source resolve(@Nonnull String relative);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 29 09:46:53 GMT 2025 - 4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java
@CollectionSize.Require(absent = ZERO) public void testCreateWithNull_unsupported() { E[] array = createArrayWithNullElement(); assertThrows( NullPointerException.class, () -> { Object unused = getSubjectGenerator().create(array); }); } /** * Returns the {@link Method} instance for {@link #testCreateWithNull_unsupported()} so that tests
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java
} assertThrows(IndexOutOfBoundsException.class, () -> refArray.get(array.length)); } public void testNewReferenceArray_withNullArray() throws Exception { assertThrows(NullPointerException.class, () -> Atomics.newReferenceArray(null)); } public void testNullPointers() { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicConstructors(Atomics.class); // there aren't anyCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 2.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java
assertSetCount(null, 1); } @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES) public void testSetCount_addNull_nullUnsupported() { assertThrows(NullPointerException.class, () -> setCountNoCheckReturnValue(null, 1)); } @CollectionFeature.Require(ALLOWS_NULL_VALUES) public void testSetCount_noOpNull_nullSupported() { try { assertSetCount(null, 0);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 13K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java
assertFalse(multimap().containsKey(null)); } @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES) public void testContainsKeyNullDisallowed() { assertThrows(NullPointerException.class, () -> multimap().containsKey(null)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.1K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Optional.java
* null} treated as {@link #absent}, use {@link #fromNullable} instead. * * <p><b>Comparison to {@code java.util.Optional}:</b> no differences. * * @throws NullPointerException if {@code reference} is null */ public static <T> Optional<T> of(T reference) { return new Present<>(checkNotNull(reference)); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 15.4K bytes - Click Count (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()Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 10 07:30:49 GMT 2025 - 11.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/SearchHelperTest.java
hasJa = true; } assertTrue("Should contain expected languages", hasEn || hasJa || languages.length >= 0); } } catch (NullPointerException e) { // Expected in test environment due to missing dependencies assertTrue("Test environment limitation", true); } } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 19.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
// Create a real NtlmPasswordAuthentication instance auth = new NtlmPasswordAuthentication("TESTDOMAIN", "testuser", "testpass"); // Initialize ServerData to avoid NullPointerException SmbTransport.ServerData serverData = transport.new ServerData(); serverData.security = 0; // Set to 0 or appropriate value for SECURITY_SHARECreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (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) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 47.9K bytes - Click Count (0)