pmayweg / sonar-groovy

SonarQube plugin for Groovy
GNU Lesser General Public License v3.0
52 stars 65 forks source link

Getting Error : Not a valid line offset for pointer #91

Open SuperCommandoDhruva opened 4 years ago

SuperCommandoDhruva commented 4 years ago

Whole code is:

try { setAttribute(‘RequestedTimeSlot’, ‘NA’); if(WoArea == “AC Power – Canada” || WoArea == “AC Power - US”) { if (WoTypeId == 300000890102345) { setAttribute(‘AreaType_c’, “AC_POWER_MAINTENANCE”) } else if (WoTypeId == 300000890102347) { setAttribute(‘AreaType_c’, “AC_POWER_INSTALL”) } else if (WoTypeId == 300000890102341) { setAttribute(‘AreaType_c’, “AC_POWER_EMERGENCY”) } else if (WoTypeId == 300000890102343) { setAttribute(‘AreaType_c’, “AC_POWER_PM”) } else if (WoTypeId == 300000890102346) { setAttribute(‘AreaType_c’, “AC_POWER_START_UP”) } else if (WoTypeId == 300000890102342) { setAttribute(‘AreaType_c’, “AC_POWER_TRAINING”) } else { setAttribute(‘AreaType_c’, null) } } else if (WoArea == ‘DC Power - US’ || WoArea == ‘DC Power – Canada’) { if (WoTypeId == 300000890102345) { setAttribute(‘AreaType_c’, “DC_POWER_MAINTENANCE”) } else if (WoTypeId == 300000890102347) { setAttribute(‘AreaType_c’, “DC_POWER_INSTALL”) } else if (WoTypeId == 300000890102341) { setAttribute(‘AreaType_c’, “DC_POWER_EMERGENCY”) } else if (WoTypeId == 300000890102343) { setAttribute(‘AreaType_c’, “DC_POWER_PM”) } else if (WoTypeId == 300000890102346) { setAttribute(‘AreaType_c’, “DC_POWER_START_UP”) } else { setAttribute(‘AreaType_c’, null) } } else { setAttribute(‘AreaType_c’, null) } } catch (e) { adf.error.raise(null) }