Author: vvalchev
Date: Wed Mar 28 06:43:03 2012
New Revision: 1306183

URL: http://svn.apache.org/viewvc?rev=1306183&view=rev
Log:
Fixed FELIX-3404 Web Admin Log Plugin stops listing of log entries if message 
is null.
https://issues.apache.org/jira/browse/FELIX-3404

Modified:
    felix/trunk/webconsole/src/main/resources/res/lib/support.js

Modified: felix/trunk/webconsole/src/main/resources/res/lib/support.js
URL: 
http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/resources/res/lib/support.js?rev=1306183&r1=1306182&r2=1306183&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/lib/support.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/lib/support.js Wed Mar 28 
06:43:03 2012
@@ -152,10 +152,14 @@ function Xdialog(text) {
 
 
 /* String */ function wordWrap( /* String */ msg ) {
-       var userAgent = navigator.userAgent.toLowerCase();
-       var isMozilla = /mozilla/.test( userAgent ) && 
!/(compatible|webkit)/.test( userAgent );
-
-       return isMozilla ? msg.split('').join(String.fromCharCode('8203')) : 
msg;
+       if (msg) {
+               var userAgent = navigator.userAgent.toLowerCase();
+               var isMozilla = /mozilla/.test( userAgent ) && 
!/(compatible|webkit)/.test( userAgent );
+       
+               return isMozilla ? 
msg.split('').join(String.fromCharCode('8203')) : msg;
+       } else {
+               return '';
+       }
 }
 
 


Reply via email to