- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for NPE (3.55 sec)
-
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
public void oneArg(String s) { // Fail: missing NPE for s } } public void testFailOneArgDoesntThrowNpe() { shouldFail(new FailOneArgDoesntThrowNpe()); } private static class FailOneArgThrowsWrongType extends PassObject { @Override public void oneArg(String s) { doThrow(s); // Fail: throwing non-NPE exception for null 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) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
// https://android-review.googlesource.com/#/c/271775/ try { this.socket = rawSocket.asBufferedSocket() } catch (npe: NullPointerException) { if (npe.message == NPE_THROW_WITH_NULL) { throw IOException(npe) } } } /** * Does all the work to build an HTTPS connection over a proxy tunnel. The catch here is that a
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.6K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
} @Override public boolean contains(@Nullable Object object) { try { // This set never contains null. We need to explicitly check here // because some comparator might throw NPE (e.g. the natural ordering). return object != null && sortedDelegate.contains(object); } catch (ClassCastException e) { return false; } } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java
} catch (final NullPointerException e) { // This is expected if the implementation requires a non-null context assertTrue("NPE is acceptable for null context in this implementation", true); } } private CustomSize createBasicAnnotation() { return new CustomSize() { @Override
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExceptionTest.java
} public void test_toString() { // Test toString method String message = "Dictionary parse error"; Exception cause = new NullPointerException("NPE occurred"); DictionaryException exception = new DictionaryException(message, cause); String toStringResult = exception.toString(); assertNotNull(toStringResult);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ScheduledJobExceptionTest.java
// Test throwing and catching the exception with cause String expectedMessage = "Job execution failed with error"; Throwable expectedCause = new NullPointerException("NPE occurred"); boolean exceptionCaught = false; try { throw new ScheduledJobException(expectedMessage, expectedCause); } catch (ScheduledJobException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/StorageExceptionTest.java
assertTrue(exception1.getCause() instanceof java.io.IOException); StorageException exception2 = new StorageException("NPE", new NullPointerException("Null reference")); assertTrue(exception2.getCause() instanceof NullPointerException);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/JobProcessingExceptionTest.java
} public void test_getMessage_withComplexCause() { // Test getMessage behavior with complex cause structure final Exception innerCause = new NullPointerException("NPE occurred"); final Exception outerCause = new IllegalStateException("State error", innerCause); final JobProcessingException exception = new JobProcessingException(outerCause);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/score/LtrQueryRescorerTest.java
assertEquals(testWindowSize, queryRescorerBuilder.windowSize().intValue()); } public void test_evaluate_withNullParams() { // Test with null parameters - should throw NPE due to OpenSearch StoredLtrQueryBuilder requirements final String testModelName = "test_model"; final int testWindowSize = 75; ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.5K bytes - Viewed (0) -
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)