mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 08:26:15 +00:00
Merge pull request #7313 from eugene7646/psql_error_8056
Fixed an error when we were trying to insert 'Infinity' as double (8056)
This commit is contained in:
commit
ae2958bf42
@ -119,7 +119,11 @@ public class EXIFProcessor implements PictureProcessor {
|
|||||||
|
|
||||||
final Rational altitude = gpsDir.getRational(GpsDirectory.TAG_ALTITUDE);
|
final Rational altitude = gpsDir.getRational(GpsDirectory.TAG_ALTITUDE);
|
||||||
if (altitude != null) {
|
if (altitude != null) {
|
||||||
attributes.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_GEO_ALTITUDE, MODULE_NAME, altitude.doubleValue()));
|
double alt = altitude.doubleValue();
|
||||||
|
if (Double.isInfinite(alt)) {
|
||||||
|
alt = 0.0;
|
||||||
|
}
|
||||||
|
attributes.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_GEO_ALTITUDE, MODULE_NAME, alt));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user