- Sort Score
- Result 10 results
- Languages All
Results 371 - 380 of 471 for NullPointerException (0.07 sec)
-
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)); } @Test
Registered: Sun Sep 07 00:10:21 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 URL
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Chars.java
* * @param collection a collection of {@code Character} objects * @return an array containing the same values as {@code collection}, in the same order, converted * to primitives * @throws NullPointerException if {@code collection} or any of its elements is null */ public static char[] toArray(Collection<Character> collection) { if (collection instanceof CharArrayAsList) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Shorts.java
* * @param collection a collection of {@code Number} instances * @return an array containing the same values as {@code collection}, in the same order, converted * to primitives * @throws NullPointerException if {@code collection} or any of its elements is null * @since 1.0 (parameter was {@code Collection<Short>} before 12.0) */ public static short[] toArray(Collection<? extends Number> collection) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.8K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSource.java
* possible. * * @param sources the sources to concatenate * @return a {@code CharSource} containing the concatenated data * @throws NullPointerException if any of {@code sources} is {@code null} * @since 15.0 */ public static CharSource concat(Iterator<? extends CharSource> sources) { return concat(ImmutableList.copyOf(sources)); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 25.7K bytes - Viewed (0) -
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/src/com/google/common/io/CharSource.java
* possible. * * @param sources the sources to concatenate * @return a {@code CharSource} containing the concatenated data * @throws NullPointerException if any of {@code sources} is {@code null} * @since 15.0 */ public static CharSource concat(Iterator<? extends CharSource> sources) { return concat(ImmutableList.copyOf(sources)); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 25.3K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Shorts.java
* * @param collection a collection of {@code Number} instances * @return an array containing the same values as {@code collection}, in the same order, converted * to primitives * @throws NullPointerException if {@code collection} or any of its elements is null * @since 1.0 (parameter was {@code Collection<Short>} before 12.0) */ public static short[] toArray(Collection<? extends Number> collection) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SetViewTest.java
} /** * A {@link Set} that throws {@link NullPointerException} and {@link ClassCastException} from * {@link #contains}. */ private static final class SetContainsThrows extends AbstractSet<Void> { @Override public boolean contains(@Nullable Object o) { throw o == null ? new NullPointerException() : new ClassCastException(); } @Override public int size() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
* Objects.equals(o, element)} would return {@code true}. Otherwise returns {@code false}, even in * cases where {@link Collection#contains} might throw {@link NullPointerException} or {@link * ClassCastException}. */ public static boolean contains(Iterable<?> iterable, @Nullable Object element) { if (iterable instanceof Collection) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.3K bytes - Viewed (0)