Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1314784] Add missing null check for HostXmlFile
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Burman committed Mar 4, 2016
1 parent 264870d commit e076cd3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -503,7 +503,7 @@ public ResourceUpgradeReport upgrade(ResourceUpgradeContext inventoriedResource)
HostConfiguration hostConfig = null;
// load hostConfiguration just once - we need it several times
File hostXmlFile = serverPluginConfiguration.getHostConfigFile();
if (hostXmlFile.exists()) {
if (hostXmlFile != null && hostXmlFile.exists()) {
try {
hostConfig = loadHostConfiguration(hostXmlFile);
} catch (Exception e) {
Expand Down

0 comments on commit e076cd3

Please sign in to comment.