Melliti opened a new issue #991: URL: https://github.com/apache/royale-asjs/issues/991
Hi, I guess i found an issue, when i add the attribute validateFunction to my stringValidator, it produces a java.lang.nullPointerException > formTest.mxml line 124 column 45 Error: Internal error in ASBlockWalker subsystem, when generating code for: /app/src/components/formTest.mxml line 124 column 45: java.lang.NullPointerException ``` <jw:Container xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:jw="library://ns.apache.org/royale/jewel" xmlns:bs="library://ns.apache.org/royale/basic" xmlns:html="library://ns.apache.org/royale/html" xmlns:mx="library://ns.apache.org/royale/mx" xmlns:models="model.*" > <fx:Script> <![CDATA[ public function minLength(): Boolean { return true } ]]> </fx:Script> <jw:FormItem label="Mot de passe"> <jw:TextInput id="txtpass1" width="180"> <jw:beads> <jw:PasswordInput /> <jw:MaxNumberCharacters maxlength="15"/> <jw:StringValidator id="pass_v" required="1" validateFunction="minLength()" //This is my line 124 which produces the error maxLength="15" requiredFieldError="Le mot de passe est obligatoire" /> </jw:beads> </jw:TextInput> </jw:FormItem> </jw:Form> </jw:Container> ``` I'm not sure if I did something wrong or if the compiler has a bug for this one but i warn you. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
