java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

Stack Overflow | Raylen Moore | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    AWS S3 returnedMetadata getETag return null

    Stack Overflow | 7 months ago | Raylen Moore
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

      at com.amazonaws.util.BinaryUtils.fromHex()
    2. AWS SDK for Java - Core
      BinaryUtils.fromHex
      1. com.amazonaws.util.BinaryUtils.fromHex(BinaryUtils.java:59)
      1 frame
    3. AWS Java SDK for Amazon S3
      AmazonS3Client.putObject
      1. com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1724)
      1 frame
    4. com.amazonaws.mobileconnectors
      UploadTask.call
      1. com.amazonaws.mobileconnectors.s3.transferutility.UploadTask.uploadSinglePartAndWaitForCompletion(UploadTask.java:203)
      2. com.amazonaws.mobileconnectors.s3.transferutility.UploadTask.call(UploadTask.java:85)
      3. com.amazonaws.mobileconnectors.s3.transferutility.UploadTask.call(UploadTask.java:44)
      3 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      4. java.lang.Thread.run(Thread.java:818)
      4 frames