|
From: Matthieu C. <cho...@gm...> - 2009-09-30 15:58:40
|
But in that code, the fields are used as parameters, so filling the keyword field at line 294 is used to highlight tokens, removing that will lead to bugs. For the NPE at line 294, do you know if it is because of context being null or context.rules ? 2009/9/30 Dale Anson <da...@gr...> > This happens when editing java files. I am using head of svn, my > current build is from revision 16233. I haven't really looked into > the code, but removing line 294 seems fix the situation. I was hoping > someone would be familiar enough with that code to know if it's > supposed to be like that. I'll poke around some more when I have > time. > > Thanks, > > Dale > > > On Wed, Sep 30, 2009 at 1:19 AM, Shlomy Reinstein <sre...@gm...> > wrote: > > Without knowing the code, just a brief look shows me this is a > > mode-specific issue that is probably related to delegation of mode > > attributes. So, in which mode does it happen? Maybe something's wrong > > with the mode file? > > > > Shlomy > > > > On Wed, Sep 30, 2009 at 9:03 AM, Matthieu Casanova > > <cho...@gm...> wrote: > >> Hi, I don't know exactly, but I suppose those keywords are used in > >> handleRule, don't you think ? > >> > >> 2009/9/29 Dale Anson <da...@gr...> > >>> > >>> In TokenMarker.java, there are these lines starting at line 292: > >>> > >>> 292: LineContext tempContext = context; > >>> 293: context = context.parent; > >>> 294: keywords = context.rules.getKeywords(); > >>> 295: boolean handled = handleRule(rule,true); > >>> 296: context = tempContext; > >>> 297: keywords = context.rules.getKeywords(); > >>> > >>> > >>> Does anyone know why the line at 294 is there at all? The value for > >>> 'keywords' is replaced in line 297 and it isn't used in between. I'm > >>> getting null pointer exceptions from line 294 fairly often. Just > >>> hitting the "Enter" button while typing in the text area causes it, > >>> then there is a beanshell error dialog and the cursor goes to the > >>> wrong place, there are painting issues, and so on. I've removed line > >>> 294 in my local copy, and things seem to be working better so far. > >>> I'm not familiar with this piece of code at all, so I don't know if > >>> context.rules on line 294 should ever be null. > >>> > >>> Thanks, > >>> > >>> Dale > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Come build with us! The BlackBerry® Developer Conference in SF, CA > >>> is the only developer event you need to attend this year. Jumpstart > your > >>> developing skills, take BlackBerry mobile applications to market and > stay > >>> ahead of the curve. Join us from November 9-12, 2009. Register > >>> now! > >>> http://p.sf.net/sfu/devconf > >>> -- > >>> ----------------------------------------------- > >>> jEdit Developers' List > >>> jEd...@li... > >>> https://lists.sourceforge.net/lists/listinfo/jedit-devel > >> > >> > >> > ------------------------------------------------------------------------------ > >> Come build with us! The BlackBerry® Developer Conference in SF, CA > >> is the only developer event you need to attend this year. Jumpstart your > >> developing skills, take BlackBerry mobile applications to market and > stay > >> ahead of the curve. Join us from November 9-12, 2009. Register > now! > >> http://p.sf.net/sfu/devconf > >> -- > >> ----------------------------------------------- > >> jEdit Developers' List > >> jEd...@li... > >> https://lists.sourceforge.net/lists/listinfo/jedit-devel > >> > >> > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > -- > ----------------------------------------------- > jEdit Developers' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-devel > |