Changeset 10862 in josm for trunk/src/com/drew/metadata/exif/makernotes/NikonType2MakernoteDescriptor.java
- Timestamp:
- 2016-08-20T20:58:03+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/exif/makernotes/NikonType2MakernoteDescriptor.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 306 306 { 307 307 int[] values = _directory.getIntArray(tagType); 308 if (values == null )308 if (values == null || values.length < 2) 309 309 return null; 310 310 if (values.length < 3 || values[2] == 0) … … 329 329 public String getLensDescription() 330 330 { 331 Rational[] values = _directory.getRationalArray(TAG_LENS); 332 333 return values == null 334 ? null 335 : values.length < 4 336 ? _directory.getString(TAG_LENS) 337 : String.format("%d-%dmm f/%.1f-%.1f", values[0].intValue(), values[1].intValue(), values[2].floatValue(), values[3].floatValue()); 338 331 return getLensSpecificationDescription(TAG_LENS); 339 332 } 340 333
Note:
See TracChangeset
for help on using the changeset viewer.