incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r419811 - /incubator/xap/trunk/src/xap/taghandling/PluginDocumentHandler.js
Date Fri, 07 Jul 2006 05:42:39 GMT
Author: mturyn
Date: Thu Jul  6 22:42:39 2006
New Revision: 419811

URL: http://svn.apache.org/viewvc?rev=419811&view=rev
Log:
Added a re-throw to the exception handling if a proper handler wasn't found---we'll be stymied
after that point anyway, and it makes the error message a little clearer (e.g., "ReferenceError:
DojoButtonBridge is undefined." instead of a message telling you that you can't do a Hashtable.put(foo,null).

Modified:
    incubator/xap/trunk/src/xap/taghandling/PluginDocumentHandler.js

Modified: incubator/xap/trunk/src/xap/taghandling/PluginDocumentHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/taghandling/PluginDocumentHandler.js?rev=419811&r1=419810&r2=419811&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/taghandling/PluginDocumentHandler.js (original)
+++ incubator/xap/trunk/src/xap/taghandling/PluginDocumentHandler.js Thu Jul  6 22:42:39 2006
@@ -178,6 +178,12 @@
 		catch( ex ) {
 			PluginDocumentHandler.s_log.exception( "Exception during eval:" + 
 												   ex.toString() );
+			// If we didn't create a new handler just now,
+			// handler==null, so this.setHandlerForElement below
+			// will bomb on the Hashtable.put(aKey,handler) that 
+			// it calls, and handler.setSession() below will also
+			// fail, so we might as well end it here:
+			throw ex ;													   
 		}	
 		
 



Mime
View raw message