mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
fix for NPE
This commit is contained in:
parent
1e9028d0be
commit
e36d6f83e9
@ -2823,11 +2823,14 @@ public class Case {
|
||||
Throwable curEx = ex;
|
||||
// max depth search for a concurrent db access exception will be 10
|
||||
for (int i = 0; i < 10; i++) {
|
||||
if (curEx instanceof ConcurrentDbAccessException foundEx) {
|
||||
if (curEx == null) {
|
||||
break;
|
||||
} else if (curEx instanceof ConcurrentDbAccessException foundEx) {
|
||||
concurrentEx = foundEx;
|
||||
break;
|
||||
} else {
|
||||
curEx = curEx.getCause();
|
||||
}
|
||||
curEx = curEx.getCause();
|
||||
}
|
||||
|
||||
if (concurrentEx != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user