This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257224 - ArrayIndexOutOfBoundsException: 0
Summary: ArrayIndexOutOfBoundsException: 0
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-19 15:38 UTC by Vitzkrieg
Modified: 2016-03-01 18:46 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205420


Attachments
stacktrace (6.76 KB, text/plain)
2015-12-19 15:38 UTC, Vitzkrieg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitzkrieg 2015-12-19 15:38:18 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 8

User Comments:
GUEST: Enter to properties and press on CSS preprocessors

GUEST: I've set a lot of path in CSS preprocessor

GUEST: Steps:
- installed SASS and changed default paths of SCSS and CSS folders
- unchecked the "compile SCSS on save" option
- left config dialog with 'Ok'
- when coming back to enable "compile SCSS on save" the config page of CSS preprocessors doesn't open (throwing the exception)

I likely clicked "add" without entering an additional path config. So maybe (not sure) there was an empty paths pair on the list.

Vitzkrieg: Not totally sure - updatnig JS libraries?

GUEST: I was removed the destination path from css compiled and dont put a new one, after that I close de popup and it never reopened again

GUEST: Wierd CSS processor config for less

Project.properties is as follows:

auxiliary.org-nbphpcouncil-modules-php-yii.application-path=/
auxiliary.org-nbphpcouncil-modules-php-yii.controllers-path=/protected/controllers
auxiliary.org-nbphpcouncil-modules-php-yii.enabled=true
auxiliary.org-nbphpcouncil-modules-php-yii.ext-path=/protected/extensions
auxiliary.org-nbphpcouncil-modules-php-yii.fallback-to-default-views=true
auxiliary.org-nbphpcouncil-modules-php-yii.messages-path=/protected/messages
auxiliary.org-nbphpcouncil-modules-php-yii.system-path=../../libraries/yii-1.1.14.f0fee9/
auxiliary.org-nbphpcouncil-modules-php-yii.themes-path=/themes
auxiliary.org-nbphpcouncil-modules-php-yii.views-path=/protected/views
auxiliary.org-nbphpcouncil-modules-php-yii.zii-path=../../libraries/yii-1.1.14.f0fee9/framework/zii
auxiliary.org-netbeans-modules-css-prep.less_2e_compiler_2e_options=
auxiliary.org-netbeans-modules-css-prep.less_2e_configured=true
auxiliary.org-netbeans-modules-css-prep.less_

meanyack: lessc file is not recognised

luktar: Problem pojawi? si? podczas konfiguracji SASS

GUEST: Trying to open CSS preprocessor options window in Project options

GUEST: Clicked on CSS preprocessors (project settings) and the tab didn't load




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 0
   at java.util.Arrays$ArrayList.get(Arrays.java:3841)
   at org.netbeans.modules.css.prep.util.CssPreprocessorUtils.decodeMappings(CssPreprocessorUtils.java:143)
   at org.netbeans.modules.css.prep.preferences.BasePreferences.getMappings(BasePreferences.java:80)
   at org.netbeans.modules.css.prep.preferences.SassPreferences.getMappings(SassPreferences.java:91)
   at org.netbeans.modules.css.prep.ui.customizer.CustomizerImpl.getOptionsPanel(CustomizerImpl.java:114)
   at org.netbeans.modules.css.prep.ui.customizer.CustomizerImpl.addChangeListener(CustomizerImpl.java:91)
Comment 1 Vitzkrieg 2015-12-19 15:38:22 UTC
Created attachment 157857 [details]
stacktrace
Comment 2 Tomas Mysik 2016-03-01 18:46:05 UTC
This issue should already be fixed in NB 8.1.

Thanks.