mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 07:43:40 +01:00
Prevent NPE in case the CveDB.getInstance() failed. This NPE masked the actual cause thereby hampering issue analysis
This commit is contained in:
@@ -172,7 +172,9 @@ public class NvdCveUpdater implements CachedWebDataSource {
|
||||
throw new UpdateException("Database Exception", ex);
|
||||
} finally {
|
||||
shutdownExecutorServices();
|
||||
cveDb.close();
|
||||
if(cveDb != null) {
|
||||
cveDb.close();
|
||||
}
|
||||
if (lock != null) {
|
||||
try {
|
||||
lock.release();
|
||||
|
||||
Reference in New Issue
Block a user