Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanKanojia authored and manusa committed Mar 25, 2020
1 parent d610d31 commit 5c384df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Usage:
* Fix #53: Renamed plugins to openshift/kubernetes-maven-plugin keeping acronym (oc/k8s) for goal
* Fix #97: Port of fabric8io/fabric8-maven-plugin#1794 to fix ImageChange triggers not being set in DeploymentConfig when resource fragments are used
* Ported PR fabric8io/fabric8-maven-plugin#1802, Labels are missing for some objects
* Ported PR fabric8io/fabric8-maven-plugin#1805, NullPointerException in ConfigMapEnricher
* Fix #112: Fix windows specific path error while splitting file path

### 0.2.0 (05-03-2020)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ private void addAnnotations(KubernetesListBuilder builder) {
@Override
public void visit(ConfigMapBuilder element) {
final Map<String, String> annotations = element.buildMetadata().getAnnotations();
try {
addConfigMapFromAnnotations(annotations, element);
} catch (IOException e) {
throw new IllegalArgumentException(e);
if (annotations != null) {
try {
addConfigMapFromAnnotations(annotations, element);
} catch (IOException e) {
throw new IllegalArgumentException(e);
}
}
}
});
Expand Down Expand Up @@ -147,4 +149,4 @@ private org.eclipse.jkube.kit.config.resource.ConfigMap getConfigMapFromXmlConfi
return null;
}

}
}

0 comments on commit 5c384df

Please sign in to comment.