Repository: cxf Updated Branches: refs/heads/master 2f0b3e382 -> c32136c0b
added npe guard Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/c32136c0 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c32136c0 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c32136c0 Branch: refs/heads/master Commit: c32136c0bb980d152954eca44f6b8f06e84bd913 Parents: 2f0b3e3 Author: Jason Pell <[email protected]> Authored: Fri Nov 21 11:02:26 2014 +1100 Committer: Jason Pell <[email protected]> Committed: Fri Nov 21 11:02:42 2014 +1100 ---------------------------------------------------------------------- .../main/java/org/apache/cxf/service/model/ServiceModelUtil.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/c32136c0/core/src/main/java/org/apache/cxf/service/model/ServiceModelUtil.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/cxf/service/model/ServiceModelUtil.java b/core/src/main/java/org/apache/cxf/service/model/ServiceModelUtil.java index 558aabd..d3fe66e 100644 --- a/core/src/main/java/org/apache/cxf/service/model/ServiceModelUtil.java +++ b/core/src/main/java/org/apache/cxf/service/model/ServiceModelUtil.java @@ -52,6 +52,9 @@ public final class ServiceModelUtil { public static BindingOperationInfo getOperation(Exchange exchange, String opName) { Endpoint ep = exchange.get(Endpoint.class); + if (ep == null) { + return null; + } BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) {
