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

Fix NullPointerException in ConfigMapEnricher #1805

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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