java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getParent()' on a null object reference

GitHub | shenrh | 2 weeks ago
  1. 0

    applicationContext.getFilesDir().getParent() java.lang.NullPointerException

    GitHub | 2 weeks ago | shenrh
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getParent()' on a null object reference
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    DiskStorageCache.evictAboveSize produces OOM

    GitHub | 4 months ago | arge128
    java.lang.OutOfMemoryError: Failed to allocate a 32780 byte allocation with 16777120 free bytes and 98MB until OOM; failed due to fragmentation (required continguous free 36864 bytes where largest contiguous free 32768 bytes)
  4. 0

    Exception when prefetch

    GitHub | 1 year ago | LiuDeng
    com.facebook.imagepipeline.memory.BasePool$PoolSizeViolationException: Pool hard cap violation? Hard cap = 1048576 Used size = 1048576 Free size = 0 Request size = 16384

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String java.io.File.getParent()' on a null object reference

      at com.facebook.cache.disk.DiskStorageCache.maybeDeleteSharedPreferencesFile()
    2. com.facebook.cache
      DiskStorageCache$1.run
      1. com.facebook.cache.disk.DiskStorageCache.maybeDeleteSharedPreferencesFile(SourceFile:782)
      2. com.facebook.cache.disk.DiskStorageCache.access$300(SourceFile:50)
      3. com.facebook.cache.disk.DiskStorageCache$1.run(SourceFile:193)
      3 frames
    3. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      2 frames