From 21089a080aa313de41b976c02b7f72dd05a2d32e Mon Sep 17 00:00:00 2001 From: John Casey Date: Mon, 3 Feb 2014 16:29:35 -0600 Subject: [PATCH] add check for toolchain key being null... --- .../java/com/redhat/rcm/version/mgr/mod/ParentModder.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/redhat/rcm/version/mgr/mod/ParentModder.java b/src/main/java/com/redhat/rcm/version/mgr/mod/ParentModder.java index 5f0987f..046db87 100644 --- a/src/main/java/com/redhat/rcm/version/mgr/mod/ParentModder.java +++ b/src/main/java/com/redhat/rcm/version/mgr/mod/ParentModder.java @@ -27,10 +27,16 @@ public String getDescription() @Override public boolean inject( final Project project, final VersionManagerSession session ) { + boolean changed = false; + + if ( session.getToolchainKey() == null ) + { + return changed; + } + final Model model = project.getModel(); final FullProjectKey toolchainKey = session.getToolchainKey(); - boolean changed = false; Parent parent = model.getParent(); if ( toolchainKey != null )