I am trying to set focus distance in Android camera2 API but get Attempt to invoke virtual method \'float java.lang.Float.floatValue()\' on a null object reference.
Attempt to invoke virtual method \'float java.lang.Float.floatValue()\' on a null object reference