Search Options

Results per page
Sort
Preferred Languages
Advance

Results 361 - 370 of 471 for NullPointerException (0.68 sec)

  1. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertEquals(7, (int) map.getInstance(TypeToken.of(Integer.class)));
    
        // Won't compile: map.putInstance(Double.class, new Long(42));
      }
    
      public void testNull() {
        assertThrows(
            NullPointerException.class,
            () -> map.putInstance((TypeToken<Integer>) null, Integer.valueOf(1)));
        map.putInstance(Integer.class, null);
        assertTrue(map.containsKey(TypeToken.of(Integer.class)));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

            }
          }
        }
      }
    
      public void testToArray_withNull() {
        List<@Nullable Double> list = Arrays.asList(0.0, 1.0, null);
        assertThrows(NullPointerException.class, () -> Doubles.toArray(list));
      }
    
      public void testToArray_withConversion() {
        double[] array = {0.0, 1.0, 2.0};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

        internal var resolvePrivateAddresses = false
        internal var resolvePublicAddresses = true
    
        fun build(): DnsOverHttps {
          val client = this.client ?: throw NullPointerException("client not set")
          return DnsOverHttps(
            client.newBuilder().dns(buildBootstrapClient(this)).build(),
            checkNotNull(url) { "url not set" },
            includeIPv6,
            post,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_4x.md

    
    ## Version 4.9.1
    
    _2021-01-30_
    
     *  Fix: Work around a crash in Android 10 and 11 that may be triggered when two threads
        concurrently close an SSL socket. This would have appeared in crash logs as
        `NullPointerException: bio == null`.
    
    
    ## Version 4.9.0
    
    _2020-09-11_
    
    **With this release, `okhttp-tls` no longer depends on Bouncy Castle and doesn't install the
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbCopyUtilTest.java

        void openCopyTargetFile_nullDest_throwsNPE() {
            // Arrange
            SmbFile dest = null;
    
            // Act + Assert
            assertThrows(NullPointerException.class, () -> SmbCopyUtil.openCopyTargetFile(dest, SmbConstants.ATTR_NORMAL, false));
        }
    
        // --- Tests for copyFile exception handling branch ---
    
        @Nested
        class CopyFileExceptions {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/query/QueryFieldConfigTest.java

            queryFieldConfig.apiResponseFieldSet = null;
    
            try {
                queryFieldConfig.isApiResponseField("field1");
                fail("Should throw NullPointerException");
            } catch (NullPointerException e) {
                // Expected
            }
        }
    
        public void test_getResponseFields() {
            String[] fields = { "field1", "field2", "field3" };
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

       * safe to do so. The exact circumstances under which a copy will or will not be performed are
       * undocumented and subject to change.
       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableListMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        if (multimap.isEmpty()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

            ComponentUtil.register(mockServletContext, "servletContext");
    
            try {
                suggestJob.executeSuggestCreator();
            } catch (NullPointerException e) {
                // ServletContext mock issue - skip test
                return;
            } finally {
                // Clean up if needed
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top