Omaha #4716 Fix NPE.
Former-commit-id: e46413899b050022d47e0294d2749a99274c6e56
This commit is contained in:
parent
f50708c360
commit
63a431de8d
1 changed files with 4 additions and 2 deletions
|
@ -200,10 +200,12 @@ public class TextDecoder {
|
|||
* This generates a text record with Awips and Afos product id set to the
|
||||
* values in the WMO Report Data.
|
||||
*/
|
||||
private static TextRecord createTextRecord(WMOReportData rpdData) {
|
||||
private static TextRecord createTextRecord(WMOReportData rpdData,
|
||||
long refTime) {
|
||||
TextRecord pdo = new TextRecord();
|
||||
pdo.setProductId(rpdData.getAfosProdId().toString());
|
||||
pdo.setAwipsProductId(rpdData.getAwipsProdId());
|
||||
pdo.setDataTime(new DataTime(new Date(refTime)));
|
||||
return pdo;
|
||||
}
|
||||
|
||||
|
@ -330,7 +332,7 @@ public class TextDecoder {
|
|||
operationalMode, headers);
|
||||
|
||||
if (writeTime != Long.MIN_VALUE) {
|
||||
pdo = createTextRecord(rptData);
|
||||
pdo = createTextRecord(rptData, writeTime);
|
||||
stored++;
|
||||
} else {
|
||||
// throw new
|
||||
|
|
Loading…
Add table
Reference in a new issue