- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for NPE (0.02 sec)
-
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) -
src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java
// Test with different types of causes DataStoreException withIOException = new DataStoreException("IO Error", new java.io.IOException("File not found")); DataStoreException withNPE = new DataStoreException("NPE Error", new NullPointerException("Null value")); DataStoreException withCustom = new DataStoreException("Custom Error", new FessSystemException("System error"));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java
fail("Expected NullPointerException"); } catch (NullPointerException e) { // Expected } // equals with null input may return false instead of throwing NPE assertFalse(item3.equals(item1)); } public void test_toString() { // Test toString method ProtwordsItem item = new ProtwordsItem(123, "testword");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.2K bytes - Viewed (0)