Check for null codeSource before attempting to access

codeSource.getLocation()
This commit is contained in:
Joe Schweitzer
2015-02-06 01:29:38 -05:00
parent 9b0f07c3bb
commit 65bf33fa72

View File

@@ -525,7 +525,7 @@ public class SpringLoadedPreProcessor implements Constants {
} else {
try {
CodeSource codeSource = protectionDomain.getCodeSource();
if (codeSource.getLocation() == null) {
if (codeSource == null || codeSource.getLocation() == null) {
if (GlobalConfiguration.isRuntimeLogging && log.isLoggable(Level.WARNING)) {
log.warning("null codesource for " + slashedClassName);
}