From: phasefx Date: Thu, 15 Jan 2009 18:08:43 +0000 (+0000) Subject: This was dying on E == null X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=408139680d9c9af5a0d4cb871e1a539c6d65127b;p=evergreen%2Ftadl.git This was dying on E == null git-svn-id: svn://svn.open-ils.org/ILS/trunk@11847 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/error.js b/Open-ILS/xul/staff_client/chrome/content/util/error.js index aa83188ec9..33bec73fbb 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/error.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/error.js @@ -268,7 +268,7 @@ util.error.prototype = { 'standard_unexpected_error_alert' : function(msg,E) { var obj = this; - if (typeof E.ilsevent != 'undefined') { + if (E != null && typeof E.ilsevent != 'undefined') { if (E.ilsevent == 0 /* SUCCESS */ ) { msg = "The action involved likely succeeded, however, this part of the software needs to be updated to better understand success messages from the server, so please let us know about it."; }