Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 471 for NullPointerException (0.38 sec)

  1. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      }
    
      // This test assumes that the implementation does not support null keys.
      public void testRowNull() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertThrows(NullPointerException.class, () -> table.row(null));
      }
    
      public void testColumn() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertEquals(ImmutableMap.of("foo", 'a', "bar", 'b'), table.column(1));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ClusterException.java

       * java.util.List} or some other collection that preserves the order in which the exceptions got
       * added.
       *
       * @throws NullPointerException if {@code exceptions} is null
       * @throws IllegalArgumentException if {@code exceptions} is empty
       */
      static RuntimeException create(Collection<? extends Throwable> exceptions) {
        if (exceptions.size() == 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Interner.java

       * original interned instance was garbage-collected.
       *
       * <p><b>Warning:</b> do not use with mutable objects.
       *
       * @throws NullPointerException if {@code sample} is null
       */
      E intern(E sample);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multiset.java

       * @throws IllegalArgumentException if {@code occurrences} is negative, or if this operation would
       *     result in more than {@link Integer#MAX_VALUE} occurrences of the element
       * @throws NullPointerException if {@code element} is null and this implementation does not permit
       *     null elements. Note that if {@code occurrences} is zero, the implementation may opt to
       *     return normally.
       */
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

        }
    
        public void test_processThreadDump_withNullConsumer() {
            try {
                ThreadDumpUtil.processThreadDump(null);
                fail("Should throw NullPointerException for null consumer");
            } catch (NullPointerException e) {
                // Expected behavior
            }
        }
    
        public void test_processThreadDump_multipleThreads() {
            AtomicInteger threadCount = new AtomicInteger(0);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/Kerb5ContextTest.java

        }
    
        @Test
        @DisplayName("verifyMIC with null inputs throws NPE")
        void verifyMIC_nullInputs() {
            assertThrows(NullPointerException.class, () -> ctx.verifyMIC(null, new byte[] { 1 }));
            assertThrows(NullPointerException.class, () -> ctx.verifyMIC(new byte[] { 1 }, null));
        }
    
        @Test
        @DisplayName("isMICAvailable reflects GSS integ state")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            SmbRandomAccessFile raf = newInstance("rw", false, true, false);
            assertThrows(NullPointerException.class, () -> raf.read((byte[]) null));
            assertThrows(NullPointerException.class, () -> raf.writeBytes(null));
            assertThrows(NullPointerException.class, () -> raf.writeChars(null));
            assertThrows(NullPointerException.class, () -> raf.writeUTF(null));
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

            assertNotNull(nullBufferResponse);
    
            // But trying to read data should cause NullPointerException
            byte[] buffer = new byte[10];
            assertThrows(NullPointerException.class, () -> nullBufferResponse.readDataWireFormat(buffer, 0, 5));
        }
    
        @Test
        void testReadDataWireFormatWithNegativeLength() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

        }
    
        public void test_constructor_withStatusCodeAndNullException() {
            // Test constructor with status code and null exception
            int statusCode = 400;
            NullPointerException cause = new NullPointerException();
    
            WebApiException exception = new WebApiException(statusCode, cause);
    
            assertEquals(statusCode, exception.getStatusCode());
            assertNull(exception.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableCollection.java

         *
         * <p>Note that each builder class covariantly returns its own type from this method.
         *
         * @param element the element to add
         * @return this {@code Builder} instance
         * @throws NullPointerException if {@code element} is null
         */
        @CanIgnoreReturnValue
        public abstract Builder<E> add(E element);
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
Back to top