Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 426 for NullPointerException (0.13 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/Interpolator.java

         * @return A function that applies each function in the collection in order until a non-null result is found.
         *         If all functions return null, the composite function returns null.
         *
         * @throws NullPointerException if the input collection is null or contains null elements.
         */
        static UnaryOperator<String> chain(Collection<? extends UnaryOperator<String>> functions) {
            return s -> {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Jan 13 16:14:35 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ArrayTable.java

       *
       * @param rowKeys row keys that may be stored in the generated table
       * @param columnKeys column keys that may be stored in the generated table
       * @throws NullPointerException if any of the provided keys is null
       * @throws IllegalArgumentException if {@code rowKeys} or {@code columnKeys} contains duplicates
       *     or if exactly one of {@code rowKeys} or {@code columnKeys} is empty.
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 19:39:21 UTC 2025
    - 26.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/http/NtlmHttpURLConnection.java

            this.connection.setReadTimeout(timeout);
        }
    
        @Override
        public void setRequestProperty(final String key, final String value) {
            if (key == null) {
                throw new NullPointerException();
            }
            final List<String> values = new ArrayList<>();
            values.add(value);
            boolean found = false;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            @DisplayName("Should handle null file ID during write")
            void testWriteWithNullFileId() {
                request.setFileId(null);
                byte[] buffer = new byte[256];
    
                assertThrows(NullPointerException.class, () -> request.writeBytesWireFormat(buffer, 0));
            }
    
            @Test
            @DisplayName("Should handle file ID of different sizes")
            void testWriteWithDifferentFileIdSizes() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

        void getters_withoutTree_throwNPE(String name, org.junit.jupiter.api.function.Executable call) {
            // Each call is invalid without a held tree and should throw NPE
            assertThrows(NullPointerException.class, call);
        }
    
        static java.util.stream.Stream<Arguments> wrapExceptions() {
            CIFSContext ctx = mock(CIFSContext.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

                // when authority is null. This is a known issue in the legacy implementation.
                // For now, we expect the NPE to maintain backward compatibility
                assertThrows(NullPointerException.class, () -> new SmbFile("smb1://").getParent());
            }
    
            @Test
            public void testGetPath() throws MalformedURLException {
                // Path should be the original, uncanonicalized URL
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/DfsTest.java

            // Set up an expired cache entry
            Dfs.CacheEntry expiredEntry = new Dfs.CacheEntry(-1); // Expired
            testDfs._domains = expiredEntry;
            testDfs.setDisabled(true); // Set disabled to avoid NullPointerException
    
            when(auth.getDomain()).thenReturn("domain.com");
    
            assertNull(testDfs.getTrustedDomains(auth));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Doubles.java

       *
       * @param collection a collection of {@code Number} instances
       * @return an array containing the same values as {@code collection}, in the same order, converted
       *     to primitives
       * @throws NullPointerException if {@code collection} or any of its elements is null
       * @since 1.0 (parameter was {@code Collection<Double>} before 12.0)
       */
      public static double[] toArray(Collection<? extends Number> collection) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 22 18:14:49 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_3x.md

    ## Version 3.14.4
    
    _2019-09-29_
    
     *  Fix: Cancel calls that fail due to unexpected exceptions. We had a bug where an enqueued call
        would never call back if it crashed with an unchecked throwable, such as a
        `NullPointerException` or `OutOfMemoryError`. We now call `Callback.onFailure()` with an
        `IOException` that reports the call as canceled. The triggering exception is still delivered to
        the thread's `UncaughtExceptionHandler`.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  10. 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)
Back to top