GP-0: Adding null log check in LibraryLookupTable.java

This commit is contained in:
Ryan Kurtz 2024-06-06 10:02:28 -04:00
parent 87f62b7603
commit 7079179b59

View File

@ -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;
}