Primavera XER files without currency information
Multi platform library to read and write schedule data
Brought to you by:
joniles
The method "processHeader()" in the PrimaveraXERFileReader class, take the 8th header record to get the default currency, but (I don't when occurs) in some cases the field is empty, I suppose when a default currency wasn't defined in Primavera, causing an IndexOutOfRange exception. The method has one line:
Says:
m_defaultCurrencyName = record.get(8);
My workaround (assuming USD by default):
m_defaultCurrencyName = record.size() > 8 ? record.get(8) : "USD";
Thanks for your fix, I have added this to the code in CVS.