Changeset 49c86b


Ignore:
Timestamp:
Mar 24, 2012, 1:27:40 PM (10 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
4c2792
Parents:
a23092
Message:

prevent storage problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/vI_storage.js

    ra23092 r49c86b  
    137137            { Log.debug("Storage deactivated"); return; }
    138138        Log.debug("updateVIdentityFromStorage()");
    139 
    140         var recipientType = document.getElementById(inputElement.id.replace(/^addressCol2/,"addressCol1"))
     139//      error: document is null in following line -- XXXXXXXXX
     140        try {
     141          var recipientType = document.getElementById(inputElement.id.replace(/^addressCol2/,"addressCol1"))
    141142            .selectedItem.getAttribute("value");
     143        }
     144        catch(e) {
     145          Log.debug("#### something went wrong, document seems to be null\n");
     146          Log.debug("inputElement.id " + inputElement.id);
     147          return;
     148        }
    142149        var row = inputElement.id.replace(/^addressCol2#/,"")
    143150        if (recipientType == "addr_reply" || recipientType == "addr_followup" || storage.__isDoBcc(row)) {
Note: See TracChangeset for help on using the changeset viewer.