Why Unhandled Exception?

Former Member
Former Member

Hi,

Why I am getting an Unhandled Exception error message on this code?

if (Weather.getCurrentConditions() != null) {
   vTemperature = Weather.getCurrentConditions().temperature;
      if (deviceSettings.paceUnits != 0) { // UNIT_METRIC = 0
         vTemperature = ((vTemperature * 1.8).toNumber() + 32); }    <======== Error on this line
}

VTemperature is declared as hidden var vTemperature = 0;  

Why I am getting this error message? Thanks in advance,