- Sort Score
- Result 10 results
- Languages All
Results 421 - 430 of 474 for NullPointerException (0.8 sec)
-
src/test/java/org/codelibs/fess/query/MatchAllQueryCommandTest.java
private static final long serialVersionUID = 1L; @Override public String get(String key) { // Override to return empty string instead of null to avoid NullPointerException return ""; } @Override public String getIndexFieldTitle() { return "title"; } @OverrideRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 16.7K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
return asImmutableList(array); } private static <E> List<E> nullCheckedList(Object... array) { for (int i = 0, len = array.length; i < len; i++) { if (array[i] == null) { throw new NullPointerException("at index " + i); } } @SuppressWarnings("unchecked") E[] castedArray = (E[]) array; return Arrays.asList(castedArray); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
TestDcerpcHandle handleWithNullBinding = new TestDcerpcHandle(mockContext); // When/Then: Should throw NPE for null binding (expected behavior) assertThrows(NullPointerException.class, () -> handleWithNullBinding.toString()); } @Test @DisplayName("Should handle session key retrieval") void testSessionKeyRetrieval() throws CIFSException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
// keep retries small for faster and deterministic tests when(config.getMaxRequestRetries()).thenReturn(2); when(config.isTraceResourceUsage()).thenReturn(false); // Mock credentials to avoid NullPointerException when(ctx.getCredentials()).thenReturn(credentials); when(credentials.getUserDomain()).thenReturn("DOMAIN"); // Mock DFS resolver when(ctx.getDfs()).thenReturn(dfsResolver); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/FloatsTest.java
} } } } public void testToArray_withNull() { List<@Nullable Float> list = Arrays.asList(0.0f, 1.0f, null); assertThrows(NullPointerException.class, () -> Floats.toArray(list)); } public void testToArray_withConversion() { float[] array = {0.0f, 1.0f, 2.0f}; 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 - 29.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/IntsTest.java
} } } } public void testToArray_withNull() { List<@Nullable Integer> list = Arrays.asList((int) 0, (int) 1, null); assertThrows(NullPointerException.class, () -> Ints.toArray(list)); } public void testToArray_withConversion() { int[] array = {0, 1, 2}; 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 - 29.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/FloatsTest.java
} } } } public void testToArray_withNull() { List<@Nullable Float> list = Arrays.asList(0.0f, 1.0f, null); assertThrows(NullPointerException.class, () -> Floats.toArray(list)); } public void testToArray_withConversion() { float[] array = {0.0f, 1.0f, 2.0f}; 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 - 29.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
* <li>All visible static methods are checked such that passing null for any parameter that's * not annotated nullable (according to the rules of {@link NullPointerTester}) should throw * {@link NullPointerException}. * <li>If there is any visible constructor or visible static factory method declared by the * class, all visible instance methods will be checked too using the instance created by
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 17.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
assertEquals(0, cache.size()); entry.setValue(3); assertEquals(1, cache.size()); assertEquals(3, cache.getIfPresent(1)); checkValidState(cache); assertThrows(NullPointerException.class, () -> entry.setValue(null)); checkValidState(cache); } } /* ---------------- Local utilities -------------- */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 15.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
new Object() { @Override public String toString() { return "I'm a string"; } })); assertThrows(NullPointerException.class, () -> Functions.toStringFunction().apply(null)); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testToStringFunctionSerializable() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0)