Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for NPE (0.02 sec)

  1. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java

          // GWT's TreeMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's TreeMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        public void oneArg(String s) {
          // Fail:  missing NPE for s
        }
      }
    
      public void testFailOneArgDoesntThrowNpe() {
        shouldFail(new FailOneArgDoesntThrowNPE());
      }
    
      private static class FailOneArgThrowsWrongType extends PassObject {
        @Override
        public void oneArg(String s) {
          doThrow(s); // Fail:  throwing non-NPE exception for null s
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  3. releasenotes/notes/48544.yaml

    apiVersion: release-notes/v2
    kind: bug-fix
    area: traffic-management
    releaseNotes:
      - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 27 04:20:28 UTC 2023
    - 211 bytes
    - Viewed (0)
  4. platforms/enterprise/enterprise/src/test/groovy/org/gradle/internal/enterprise/exceptions/ExceptionMetadataHelperTest.groovy

    class ExceptionMetadataHelperTest extends Specification {
    
        void "extracts exception with multiple cause chain"() {
            given:
            def npe = new NullPointerException("nullness")
            def iae = new IllegalArgumentException("badness", npe)
            def re = new RuntimeException("sadness")
            def mbf = new MultipleBuildFailures([re, iae])
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 17 10:17:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/repository/UserLocalArtifactRepository.java

        @Override
        public Artifact find(Artifact artifact) {
            File artifactFile = new File(localRepository.getBasedir(), pathOf(artifact));
    
            // We need to set the file here or the resolver will fail with an NPE, not fully equipped to deal
            // with multiple local repository implementations yet.
            artifact.setFile(artifactFile);
    
            return artifact;
        }
    
        @Override
        public String getId() {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/file/FileOrUriNotationConverterTest.groovy

            then:
            parsed instanceof URI
        }
    
        def "does not throw NPE for URI with unknown schema"() {
            setup:
            def unsupportedURIString = new URI("no-schema")
            when:
            def parsed = parse(unsupportedURIString)
            then:
            parsed instanceof URI
        }
    
        def "does not throw NPE for non-hierarchical URI"() {
            setup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 16:59:26 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r50/ArgumentPassingCrossVersionTest.groovy

        }
    
        def "Adding zero JVM arguments is a no-op"() {
            expect:
            loadBuildEnvironment { builder -> builder.addJvmArguments() }
        }
    
        def "Adding null JVM argument throws NPE"() {
            when:
            loadBuildEnvironment { builder -> builder.addJvmArguments(null as String) }
    
            then:
            thrown(NullPointerException)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/internal/buildevents/BuildFailureIntegrationTest.groovy

    import org.gradle.integtests.fixtures.AbstractIntegrationSpec
    
    class BuildFailureIntegrationTest extends AbstractIntegrationSpec {
        def "still prints errors when exception misbehaves"() {
            // When running in-process, the NPE propagates out of the test fixtures
            executer.requireIsolatedDaemons()
            executer.requireDaemon()
    
            buildFile << """
    class BadException extends Exception {
       String getMessage() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 13:10:04 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ForwardingSortedMap.java

        /** Constructor for use by subclasses. */
        public StandardKeySet() {
          super(ForwardingSortedMap.this);
        }
      }
    
      // unsafe, but worst case is a CCE or NPE is thrown, which callers will be expecting
      @SuppressWarnings({"unchecked", "nullness"})
      static int unsafeCompare(
          @CheckForNull Comparator<?> comparator, @CheckForNull Object o1, @CheckForNull Object o2) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/AttributeContainerResolutionIntegrationTest.groovy

                }
    
                task resolve {
                    inputs.files(configurations.conf)
                }
            """
            expect:
            // When this has failed in the past, building the task graph hits a NPE from the attribute container
            succeeds("resolve")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top