Skip to content
Snippets Groups Projects
Commit 8e325d82 authored by Simon Spinner's avatar Simon Spinner
Browse files

Add null check.

parent 8b36c1bd
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,10 @@ public class ServerInstrumentationDeploymentProcessor implements DeploymentUnitP ...@@ -100,7 +100,10 @@ public class ServerInstrumentationDeploymentProcessor implements DeploymentUnitP
final WarMetaData metaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY); final WarMetaData metaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY);
if (metaData != null) { if (metaData != null) {
String serverNode = System.getProperty("jboss.node.name"); String serverNode = System.getProperty("jboss.node.name");
String root = metaData.getJBossWebMetaData().getContextRoot(); String root = null;
if (metaData.getJBossWebMetaData() != null) {
root = metaData.getJBossWebMetaData().getContextRoot();
}
if (root == null) { if (root == null) {
root = eeModuleDescription.getModuleName(); root = eeModuleDescription.getModuleName();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment