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