[
https://issues.apache.org/jira/browse/TOMEE-2201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16545289#comment-16545289
]
ASF GitHub Bot commented on TOMEE-2201:
---------------------------------------
GitHub user tveronezi opened a pull request:
https://github.com/apache/tomee/pull/135
TOMEE-2201 NPE when injecting Application
There are two things here:
* the `javax.ws.rs.core.Application` option was not in the if chain in
JndiEncBuilder.java.
* MapObjectReference.java was throwing NPE if the referenced map was null.
Help on creating unit tests for these guys is needed.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tveronezi/tomee
TOMEE-2201_NPE_when_injecting_Application
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tomee/pull/135.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #135
----
commit ff8e9c88c4ec116e1e7e2ff09e3365c76d36b899
Author: Thiago Veronezi <thiago@...>
Date: 2018-07-16T14:57:38Z
add the application case to existing if block; checking map existence
before calling a method on it.
----
> NPE when injecting Application
> ------------------------------
>
> Key: TOMEE-2201
> URL: https://issues.apache.org/jira/browse/TOMEE-2201
> Project: TomEE
> Issue Type: Improvement
> Reporter: Thiago Veronezi
> Assignee: Thiago Veronezi
> Priority: Major
> Labels: pull-request-available
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)