Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 457 for NullPointerException (0.08 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNull_unsupported() {
        E[] array = createArrayWithNullElement();
    
        assertThrows(
            NullPointerException.class,
            () -> {
              Object unused = getSubjectGenerator().create(array);
            });
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testCreateWithNull_unsupported()} so that tests
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSet.java

       * This reduces the expense of habitually making defensive copies at API boundaries. However, the
       * precise conditions for skipping the copy operation are undefined.
       *
       * @throws NullPointerException if any of {@code elements} is null
       * @since 7.0 (source-compatible since 2.0)
       */
      // This the best we could do to get copyOfEnumSet to compile in the mainline.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  3. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 19:39:21 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            assertEquals("remove", ex.getMessage());
        }
    
        @Test
        @DisplayName("Null tree handle throws NullPointerException during construction")
        void nullTreeHandle() {
            // Arrange
            SmbTreeHandleImpl nullTree = null;
    
            // Act + Assert
            assertThrows(NullPointerException.class,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/PluginExceptionTest.java

            assertEquals(longMessage, exception.getMessage());
        }
    
        public void test_multiLevelExceptionChain() {
            // Test multi-level exception chain
            Throwable level3 = new NullPointerException("Null value");
            Throwable level2 = new IllegalStateException("Invalid state", level3);
            Throwable level1 = new RuntimeException("Runtime error", level2);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

            infoField.setAccessible(true);
            infoField.set(msrpcShareGetInfo, null);
    
            // This should throw NullPointerException
            assertThrows(NullPointerException.class, () -> {
                msrpcShareGetInfo.getSecurity();
            });
        }
    
        @Test
        void testInheritedFields() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            });
        }
    
        @Test
        @DisplayName("Should handle null nonce")
        void testNullNonce() {
            // When/Then
            assertThrows(NullPointerException.class, () -> {
                transformHeader.setNonce(null);
            });
        }
    
        @Test
        @DisplayName("Should handle invalid nonce length")
        void testInvalidNonceLength() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            Smb2CloseRequest requestWithNull = new Smb2CloseRequest(mockConfig, null, testFileName);
            byte[] buffer = new byte[256];
    
            // Should throw NullPointerException when trying to copy null array
            assertThrows(NullPointerException.class, () -> {
                requestWithNull.writeBytesWireFormat(buffer, 0);
            });
        }
    
        @Test
        @DisplayName("readBytesWireFormat should return 0")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/dtyp/ACETest.java

            ace.allow = true;
            ace.access = 0x001200A9;
            ace.flags = 0x00;
            ace.sid = null;
    
            // This should throw NullPointerException as the current implementation doesn't handle null SID
            assertThrows(NullPointerException.class, () -> ace.toString());
        }
    
        @Test
        @DisplayName("Test decode creates new SID instance")
        void testDecodeCreatesNewSID() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            assertThrows(NullPointerException.class,
                    () -> new SmbFileHandleImpl(cfg, new byte[] { 1, 2 }, null, "//server/share", 0, 0, 0, 0, 0L));
        }
    
        @Test
        @DisplayName("Constructor with null cfg throws NPE")
        void constructor_nullCfg_throwsNPE() {
            stubValidTree(7L, true, true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top