Merge pull request #103 from joeschweitzer/master

Check for null codeSource before attempting to access
This commit is contained in:
Andy Clement
2015-02-12 22:09:23 -08:00

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