diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2012-06-06 11:15:29 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2012-06-06 11:15:29 +0000 |
commit | 0172cc465bde4e0dbc358dcf49d0363b4af2899a (patch) | |
tree | 9f1e9cb28ca161cef3341c84bbb2a9724ca4a9ab /sca-java-2.x/trunk/modules/implementation-widget-runtime | |
parent | 3e3c6352fac8bfbb35de7ab9a46ae6e8353aea48 (diff) |
Fix NPE with widget sample
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1346827 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/implementation-widget-runtime')
-rw-r--r-- | sca-java-2.x/trunk/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java b/sca-java-2.x/trunk/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java index 28a1f6d1db..b92c35aa8d 100644 --- a/sca-java-2.x/trunk/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java +++ b/sca-java-2.x/trunk/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java @@ -56,7 +56,8 @@ class WidgetImplementationInvoker implements Invoker { public Message invoke(Message msg) { // Get the resource id from the request message - String id = (String)((Object[])msg.getBody())[0]; + + String id = msg.getBody() == null ? "" : (String)((Object[])msg.getBody())[0]; try { if (id.length() == 0) { |