Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 471 for NullPointerException (0.07 sec)

  1. 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)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            assertTrue(log.matches(".*used [0-9.]+[a-zA-Z]+, heap [0-9.]+[a-zA-Z]+, max [0-9.]+[a-zA-Z]+.*"));
        }
    
        public void test_byteCountToDisplaySize_edgeCases() {
            // Test negative values - should throw NullPointerException in private method via BigInteger.valueOf
            try {
                MemoryUtil.byteCountToDisplaySize(-1L);
                // If no exception, verify it handles negative as expected
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

      @Override
      public void setUp() {
        fakePool = new FakeExecutor();
        e = new SequentialExecutor(fakePool);
      }
    
      public void testConstructingWithNullExecutor_fails() {
        assertThrows(NullPointerException.class, () -> new SequentialExecutor(null));
      }
    
      public void testBasics() {
        AtomicInteger totalCalls = new AtomicInteger();
        Runnable intCounter =
            new Runnable() {
              @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  6. 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)
  7. guava-tests/test/com/google/common/collect/RangeTest.java

      public void testEncloseAll_nullValue() {
        List<@Nullable Integer> nullFirst = Lists.newArrayList(null, 0);
        assertThrows(NullPointerException.class, () -> Range.encloseAll((List<Integer>) nullFirst));
        List<@Nullable Integer> nullNotFirst = Lists.newArrayList(0, null);
        assertThrows(NullPointerException.class, () -> Range.encloseAll((List<Integer>) nullNotFirst));
      }
    
      public void testEquivalentFactories() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  8. 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)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

        void testGetInfoWithTypeWhenNull() {
            response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO);
    
            assertThrows(NullPointerException.class, () -> {
                response.getInfo(FileBasicInfo.class);
            });
        }
    
        @Test
        @DisplayName("Test getInfo with compatible type")
        void testGetInfoWithCompatibleType() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

            assertEquals("Not supported", ex.getMessage());
        }
    
        @Test
        @DisplayName("Null delegate causes NPE")
        void nullDelegate() {
            assertThrows(NullPointerException.class, () -> {
                new FileEntryAdapterIterator(parent, null, null) {
                    @Override
                    protected SmbResource adapt(FileEntry e) {
                        return resource;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top