mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-21 13:05:43 -05:00
Resolves NPE thrown when audio recording metadata is null. (#486)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* ******************************************************************************
|
||||
* sdrtrunk
|
||||
* Copyright (C) 2014-2018 Dennis Sheirer
|
||||
* Copyright (C) 2014-2019 Dennis Sheirer
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -316,6 +316,8 @@ public class WaveMetadata
|
||||
waveMetadata.add(WaveMetadataType.SOFTWARE, SystemProperties.getInstance().getApplicationName());
|
||||
waveMetadata.add(WaveMetadataType.DATE_CREATED, SDF.format(new Date(System.currentTimeMillis())));
|
||||
|
||||
if(identifierCollection != null)
|
||||
{
|
||||
Identifier system = identifierCollection.getIdentifier(IdentifierClass.CONFIGURATION, Form.SYSTEM, Role.ANY);
|
||||
if(system instanceof SystemConfigurationIdentifier)
|
||||
{
|
||||
@@ -399,6 +401,7 @@ public class WaveMetadata
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return waveMetadata;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user