OSDN Git Service

nullを考慮
authorMRSa <mrsa@myad.jp>
Thu, 9 Mar 2017 15:45:19 +0000 (00:45 +0900)
committerMRSa <mrsa@myad.jp>
Thu, 9 Mar 2017 15:45:19 +0000 (00:45 +0900)
app/src/main/java/jp/sfjp/gokigen/a01c/olycamerawrapper/CameraStatusDisplay.java

index eee1c23..473407a 100644 (file)
@@ -32,7 +32,10 @@ class CameraStatusDisplay implements  ICameraStatusDisplay
         informationObject.setMessage(IShowInformation.AREA_2, Color.WHITE, propetyValue);
 
         propetyValue = propertyProxy.getCameraPropertyValueTitle(propertyProxy.getCameraPropertyValue(IOlyCameraProperty.APERTURE));
-        informationObject.setMessage(IShowInformation.AREA_3, Color.WHITE, "F" + propetyValue);
+        if (propetyValue != null)
+        {
+            informationObject.setMessage(IShowInformation.AREA_3, Color.WHITE, "F" + propetyValue);
+        }
 
         informationObject.setMessage(IShowInformation.AREA_4, Color.GRAY, "");