Fix some eclipse warnings

git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1559241 13f79535-47bb-0310-9956-ffa450edef68
[CXF-5476] Add an NPE guard

git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1559242 13f79535-47bb-0310-9956-ffa450edef68