Fix double parsing exception of "--.--" by replacing with "0"
Added null checks in SettingsFragment to prevent NPEs