|
From: Dale A. <da...@gr...> - 2009-09-29 21:03:13
|
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 |