- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 114 for NullPointerException (1.52 sec)
-
src/main/java/org/codelibs/fess/util/ComponentUtil.java
*/ @SuppressWarnings("unchecked") public static <T> T getComponent(final Class<T> clazz) { try { return SingletonLaContainer.getComponent(clazz); } catch (final NullPointerException e) { if (logger.isDebugEnabled()) { throw new ContainerNotAvailableException(clazz.getCanonicalName(), e); }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 28.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
void testMethodsWithNullBuffers() { netShareEnum = new NetShareEnum(realConfig); // Write methods return 0 when buffer is null (no NullPointerException thrown) assertEquals(0, netShareEnum.writeSetupWireFormat(null, 0)); assertThrows(NullPointerException.class, () -> { netShareEnum.writeParametersWireFormat(null, 0); });
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
@BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getNetbiosScope()).thenReturn(null); // Configure OEM encoding to avoid NullPointerException when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); } @Test @DisplayName("Constructor with Configuration only should create empty Name instances") void testConstructorWithConfigOnly() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
assertTrue(UniAddress.isDotQuadIP("999.999.999.999")); } @Test void shouldThrowExceptionForNullInput() { assertThrows(NullPointerException.class, () -> UniAddress.isDotQuadIP(null)); } @Test void shouldThrowExceptionForEmptyInput() { assertThrows(StringIndexOutOfBoundsException.class, () -> UniAddress.isDotQuadIP(""));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
// This test verifies that when the system property is null, the handler // falls back to using default handlers without throwing NullPointerException. System.clearProperty("java.protocol.handler.pkgs"); setupMockProtocolHandlers(); URL url = new URL("http://example.com/resource");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
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) -
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)); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.6K bytes - Viewed (0) -
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 URLRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
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) -
src/test/java/jcifs/smb/SpnegoContextTest.java
void testInitSecContextNullBufferNonZeroLen() throws Exception { SpnegoContext ctx = newContext(); // A null buffer with non-zero len leads to NPE while slicing input assertThrows(NullPointerException.class, () -> ctx.initSecContext(null, 0, 1)); verify(this.mechContext, never()).initSecContext(any(), anyInt(), anyInt()); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0)