File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
jkube-kit/enricher/generic/src/main/java/org/eclipse/jkube/enricher/generic Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 25
25
* Fix #53 : Renamed plugins to openshift/kubernetes-maven-plugin keeping acronym (oc/k8s) for goal
26
26
* Fix #97 : Port of fabric8io/fabric8-maven-plugin #1794 to fix ImageChange triggers not being set in DeploymentConfig when resource fragments are used
27
27
* Ported PR fabric8io/fabric8-maven-plugin #1802 , Labels are missing for some objects
28
+ * Ported PR fabric8io/fabric8-maven-plugin #1805 , NullPointerException in ConfigMapEnricher
28
29
* Fix #112 : Fix windows specific path error while splitting file path
29
30
30
31
### 0.2.0 (05-03-2020)
Original file line number Diff line number Diff line change @@ -56,10 +56,12 @@ private void addAnnotations(KubernetesListBuilder builder) {
56
56
@ Override
57
57
public void visit (ConfigMapBuilder element ) {
58
58
final Map <String , String > annotations = element .buildMetadata ().getAnnotations ();
59
- try {
60
- addConfigMapFromAnnotations (annotations , element );
61
- } catch (IOException e ) {
62
- throw new IllegalArgumentException (e );
59
+ if (annotations != null ) {
60
+ try {
61
+ addConfigMapFromAnnotations (annotations , element );
62
+ } catch (IOException e ) {
63
+ throw new IllegalArgumentException (e );
64
+ }
63
65
}
64
66
}
65
67
});
@@ -147,4 +149,4 @@ private org.eclipse.jkube.kit.config.resource.ConfigMap getConfigMapFromXmlConfi
147
149
return null ;
148
150
}
149
151
150
- }
152
+ }
You can’t perform that action at this time.
0 commit comments