<p dir="auto">I want to download images in different directories, I mean in external storage with different paths,<br>
and the paths should be created dynamically, if the only way to mention path is using  setDiskCache() in extended GlideModule,but GlideModule I need to mention in AndroidManifest.xml,while I need to choose path  dynamically.</p>
<p dir="auto">I have a problem.</p>
<p dir="auto">Glide Version: 4.3.1<br>
Android Version:7.0<br>
Device:Moto(E4) Plus</p>
<p dir="auto">java.lang.NullPointerException: Attempt to read from field 'com.bumptech.glide.Priority com.bumptech.glide.load.engine.DecodeJob' on a null object reference<br>
at com.bumptech.glide.load.engine.DecodeJob.compareTo(SourceFile:10204)<br>
at java.util.concurrent.PriorityBlockingQueue.siftUpComparable(PriorityBlockingQueue.java:331)<br>
at java.util.concurrent.PriorityBlockingQueue.offer(PriorityBlockingQueue.java:459)<br>
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1352)<br>
at com.bumptech.glide.load.engine.executor.GlideExecutor.execute(SourceFile:255)<br>
at com.bumptech.glide.request.SingleRequest.a(SourceFile:19115)<br>
at com.bumptech.glide.request.target.ViewTarget.getSize(SourceFile:1250)<br>
at com.bumptech.glide.request.SingleRequest.begin(SourceFile:257)<br>
at com.bumptech.glide.RequestManager.onStart(SourceFile:4095)<br>
at com.bumptech.glide.manager.ActivityFragmentLifecycle.onStart(SourceFile:50)<br>
at com.bumptech.glide.manager.SupportRequestManagerFragment.onStart(SourceFile:175)</p>
<p dir="auto">The code is confused, I try to restore, but still some code lines are not up, please forgive.</p>