Changeset 5839


Ignore:
Timestamp:
03/31/14 05:30:37 (6 years ago)
Author:
avneesh-singh
Message:

fixed: null reference when span ID is missing in DAISY 2.02 import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/ImportExport/DAISY202Import.cs

    r5832 r5839  
    229229                //extract id 
    230230 
    231                 string strId = node.Attributes.GetNamedItem("id").Value; 
     231                XmlNode attrID = node.Attributes.GetNamedItem("id"); 
     232                string strId = attrID!= null    ? attrID.Value: null; 
    232233                if (strId != null) m_NccReferenceToPageMap.Add(strId, n); 
    233234            } 
Note: See TracChangeset for help on using the changeset viewer.