Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Fix NullPointerException in ConfigMapEnricher
Browse files Browse the repository at this point in the history
This also seems to be a sideeffect of sundrio configuration change, A user
emailed about this problem.
  • Loading branch information
rohanKanojia committed Mar 24, 2020
1 parent b647277 commit 4baa2df
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Usage:
```

### 4.5-SNAPSHOT
* Fix NullPointerException in ConfigMapEnricher

### 4.4.1 (2020-03-18)
* Fix: JIB Assembly config doesn't work with any Archive mode
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## fabric8-maven-plugin

> Deprecation Note: This project has been moved to https://github.com/eclipse/jkube . All new features would be implemented there and support for FMP would be eventually dropped.
# Deprecation Note:

This project has been moved to https://github.com/eclipse/jkube . All new features would be implemented there and support for FMP would be eventually dropped.

## fabric8-maven-plugin

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.fabric8/fabric8-maven-plugin/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/io.fabric8/fabric8-maven-plugin/)
[![Circle CI](https://circleci.com/gh/fabric8io/fabric8-maven-plugin/tree/master.svg?style=shield)](https://circleci.com/gh/fabric8io/fabric8-maven-plugin/tree/master)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,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

0 comments on commit 4baa2df

Please sign in to comment.