cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-6682) NullpointerException in LinkBuilderImpl#getResolvedUri when only baseUri is set
Date Tue, 01 Mar 2016 10:18:18 GMT

     [ https://issues.apache.org/jira/browse/CXF-6682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Beryozkin resolved CXF-6682.
-----------------------------------
       Resolution: Fixed
         Assignee: Sergey Beryozkin
    Fix Version/s: 3.1.5

> NullpointerException in LinkBuilderImpl#getResolvedUri when only baseUri is set
> -------------------------------------------------------------------------------
>
>                 Key: CXF-6682
>                 URL: https://issues.apache.org/jira/browse/CXF-6682
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.4
>            Reporter: Christoph Berg
>            Assignee: Sergey Beryozkin
>             Fix For: 3.1.5
>
>
> The {{LinkBuilderImpl}} does not initialize its {{UriBuilder}} property with a non null
value causing a NullPointerException if calling its `build` method after object construction.
> We have a testcase, which just calls {{baseUri}} followed by {{build}}. Previously we
used Jersey as JAX-RS implementation where this test works. Looking at the code, Jersey initialises
its property by just constructing their implementation of `UriBuilder`.
> I would assume, that changing the line
> {code}
> private UriBuilder ub;
> {code}
> to
> {code}
> private UriBuilder ub = new UriBuilderImpl();
> {code}
> would suffice.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message