|
From: daniel j. <de...@gm...> - 2009-09-30 02:30:57
|
Just pressing enter causes exceptions for you? In svn head? On Tue, Sep 29, 2009 at 4:03 PM, Dale Anson <da...@gr...> wrote: > 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 > -- Daniel Johnson de...@gm... |