Commit 7e472fa
committed
Fix NullPointerException in ASMCacheManager.getInstance()
- Add null/empty validation for cacheDirectory key in ConcurrentHashMap.computeIfAbsent()
- ConcurrentHashMap does not allow null keys, causing NPE when cacheDir is null
- Use default cache directory if provided config has null/empty directory
- Add logging for null cache directory detection
Resolves: java.lang.NullPointerException at ConcurrentHashMap.putVal in createCacheManager1 parent da42aa1 commit 7e472fa
1 file changed
Lines changed: 7 additions & 3 deletions
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
0 commit comments