mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 12:11:55 +00:00
GP-0: Adding null log check in LibraryLookupTable.java
This commit is contained in:
parent
87f62b7603
commit
7079179b59
@ -212,7 +212,7 @@ public class LibraryLookupTable {
|
||||
*
|
||||
* @param dllName The DLL name (including extension)
|
||||
* @param size The architecture size of the DLL (e.g., 32 or 64).
|
||||
* @param log The message log
|
||||
* @param log The message log (could be null)
|
||||
* @return LibrarySymbolTable associated with dllName
|
||||
*/
|
||||
synchronized static LibrarySymbolTable getSymbolTable(String dllName, int size,
|
||||
@ -220,7 +220,9 @@ public class LibraryLookupTable {
|
||||
String cacheKey = LibrarySymbolTable.getCacheKey(dllName, size);
|
||||
LibrarySymbolTable symTab = cacheMap.get(cacheKey);
|
||||
if (symTab != null) {
|
||||
log.appendMsg("Applying cached symbols from " + dllName);
|
||||
if (log != null) {
|
||||
log.appendMsg("Applying cached symbols from " + dllName);
|
||||
}
|
||||
return symTab;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user