Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NullPointerException (0.36 sec)

  1. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

            }
        }
    
        /**
         * Test that try-with-resources handles null InputStream correctly.
         * Verifies that null InputStream doesn't cause NullPointerException during close.
         */
        @Test
        public void testTryWithResources_nullInputStreamSafety() {
            // This test demonstrates that try-with-resources handles null safely
            try (InputStream is = null) {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

            when(mockHealthResponse.isTimedOut()).thenReturn(false);
            when(mockFuture.actionGet(anyLong(), any(TimeUnit.class))).thenReturn(mockHealthResponse);
    
            // Should not throw NullPointerException
            try {
                // Note: We can't easily test connect() fully without mocking createClient()
                // This test verifies the null check logic indirectly
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:44:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/Suggester.java

         * @param normalizer The Normalizer instance.
         * @param analyzer The SuggestAnalyzer instance.
         * @param threadPool The ExecutorService for thread pooling.
         * @throws NullPointerException if any of the required parameters is null.
         */
        public Suggester(final Client client, final SuggestSettings settings, final ReadingConverter readingConverter,
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 21.6K bytes
    - Viewed (3)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

        public void test_destroyObject_nullPooledObject() {
            try {
                factory.destroyObject(null);
                // Should not throw NPE - implementation should handle gracefully or throw
            } catch (NullPointerException e) {
                // Acceptable behavior
                assertTrue(true);
            } catch (Exception e) {
                // Other exceptions might be acceptable
                assertTrue(true);
            }
        }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 13:07:01 UTC 2025
    - 36.7K bytes
    - Viewed (0)
Back to top