Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SuperCommandoDhruva opened this issue Apr 7, 2020 · 0 comments
Open

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

SuperCommandoDhruva opened this issue Apr 7, 2020 · 0 comments

Comments

@SuperCommandoDhruva
Copy link

SuperCommandoDhruva commented Apr 7, 2020

  • sonar-scanner-cli-4.2.0.1873-windows

  • error observed: java.lang.IllegalArgumentException: 64 is not a valid line offset for pointer. File test.groovy has 63 character(s) at line 3

  • potential workaround: No workaround yet

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)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant