Skip to content

CAMEL-15493 - Fixes NPE thrown in camel-cdi when attempting to inject an array property using Microprofile Config#4156

Merged
davsclaus merged 1 commit intoapache:camel-3.4.xfrom
kentfung:CAMEL-15493
Sep 4, 2020
Merged

CAMEL-15493 - Fixes NPE thrown in camel-cdi when attempting to inject an array property using Microprofile Config#4156
davsclaus merged 1 commit intoapache:camel-3.4.xfrom
kentfung:CAMEL-15493

Conversation

@kentfung
Copy link
Contributor

@kentfung kentfung commented Sep 3, 2020

This fixes a NPE that intermittently occurs in a TomEE 8 microprofile environment on container startup. I prepared a test case that reproduces the issue in a separate branch (CAMEL-15493-Test) but decided not to include it in this PR as it introduces quite a few dependencies (although all test scoped).

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.

  • Each commit in the pull request should have a meaningful subject line and body.

  • If you're unsure, you can format the pull request title like [CAMEL-XXX] Fixes bug in camel-file component, where you replace CAMEL-XXX with the appropriate JIRA issue.

  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.

  • Run mvn clean install -Psourcecheck in your module with source check enabled to make sure basic checks pass and there are no checkstyle violations. A more thorough check will be performed on your pull request automatically.

Below are the contribution guidelines:
https://github.com/apache/camel/blob/master/CONTRIBUTING.md

…tension.shouldDeployDefaultCamelContext so that getClass().getPackage() on the class instance comes first since it's guaranteed to be non-null.
Copy link
Contributor

@oscerd oscerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davscalus lgtm

@davsclaus davsclaus merged commit ce2bf7a into apache:camel-3.4.x Sep 4, 2020
davsclaus pushed a commit that referenced this pull request Sep 4, 2020
…tension.shouldDeployDefaultCamelContext so that getClass().getPackage() on the class instance comes first since it's guaranteed to be non-null. (#4156)
rgannu pushed a commit to rgannu/camel that referenced this pull request Sep 17, 2020
…tension.shouldDeployDefaultCamelContext so that getClass().getPackage() on the class instance comes first since it's guaranteed to be non-null. (apache#4156)
rgannu pushed a commit to rgannu/camel that referenced this pull request Sep 22, 2020
…tension.shouldDeployDefaultCamelContext so that getClass().getPackage() on the class instance comes first since it's guaranteed to be non-null. (apache#4156)
lburgazzoli pushed a commit to lburgazzoli/apache-camel that referenced this pull request Sep 30, 2020
…tension.shouldDeployDefaultCamelContext so that getClass().getPackage() on the class instance comes first since it's guaranteed to be non-null. (apache#4156)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants