I'm aware that getFlightKey
is returning null during the initialising itself. It should be null as I'm using my code to build apks for two types of Users. For one user, "flight Key" is used and for the other, it is not used.
else {
tabletMetadata = new TabletMetadata(new DateTime(), getActiveEmployeeIdentifier()
,getAirFiApplication().getTabletId(),getFlightMetadata().get().getFlightKey()
,flightLegIdentifier, new DateTime(), level,
location != null ? String.valueOf(location.getLatitude()) : null,
location != null ? String.valueOf(location.getLongitude()) : null, null, level, null, null);
getFlightMetadata().get().getFlightKey()
will be null but how can I add something similar to null check handle this?