Author: davsclaus
Date: Thu Apr 14 09:08:36 2011
New Revision: 1092068
URL: http://svn.apache.org/viewvc?rev=1092068&view=rev
Log:
CAMEL-3861: Fixe NPE in camel-web when browsing messages on endpoints.
Modified:
camel/trunk/components/camel-web/src/main/webapp/WEB-INF/org/apache/camel/web/resources/ExchangeResource.index.ssp
Modified:
camel/trunk/components/camel-web/src/main/webapp/WEB-INF/org/apache/camel/web/resources/ExchangeResource.index.ssp
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/WEB-INF/org/apache/camel/web/resources/ExchangeResource.index.ssp?rev=1092068&r1=1092067&r2=1092068&view=diff
==============================================================================
---
camel/trunk/components/camel-web/src/main/webapp/WEB-INF/org/apache/camel/web/resources/ExchangeResource.index.ssp
(original)
+++
camel/trunk/components/camel-web/src/main/webapp/WEB-INF/org/apache/camel/web/resources/ExchangeResource.index.ssp
Thu Apr 14 09:08:36 2011
@@ -20,7 +20,11 @@
#for(entry <- it.getProperties)
<tr>
<td>${entry.getKey}</td>
- <td><a class="type"
title="${entry.getValue.getClass.getCanonicalName}">${entry.getValue}</a></td>
+ #if(entry.getValue != null)
+ <td><a class="type"
title="${entry.getValue.getClass.getCanonicalName}">${entry.getValue}</a></td>
+ #else
+ <td><a class="type">null</a></td>
+ #end
</tr>
#end
</table>
@@ -37,7 +41,11 @@
#for(entry <- it.getHeaders)
<tr>
<td>${entry.getKey}</td>
- <td><a class="type"
title="${entry.getValue.getClass.getCanonicalName}">${entry.getValue}</a></td>
+ #if(entry.getValue != null)
+ <td><a class="type"
title="${entry.getValue.getClass.getCanonicalName}">${entry.getValue}</a></td>
+ #else
+ <td><a class="type">null</a></td>
+ #end
</tr>
#end
</table>
@@ -45,7 +53,11 @@
</tr>
<tr>
<th colspan="2">
+ #if(it.getIn.getBody != null)
Message Body is Java Class: ${it.getIn.getBody.getClass.getCanonicalName}
+ #else
+ Message Body is Java Class: null
+ #end
</th>
</tr>
<tr>