bobbylight/RSyntaxTextArea — pull request #52 by WorkDayHeyHey (2014-05-19 19:56:18+00:00)
Title: Synth Look and Feel causes Null Pointer

I recently changed one of our projects to use a Synth based Look and Feel and started getting a Null Pointer exception in RTextAreaBase.updateMarginLineX().

It seems that this code is called twice while being constructed; on the first pass getFont() returns null, on the second pass the font I set in Synth is returned. This is a change from the behaviour when using Metal UI.

This workaround seems to work, although I am not sure what is being done with this value. At least the editor I upgraded to context aware using RTextArea works as it used to.

I did not mean to change .gitignore, the help doc says I can pick which files to request the pull on but I don't seem to see that, so feel free to ignore it. Humm, I see that I would need to make a branch with just the one file in it, please just ignore the file.

Thanks, for keeping this code working. I see it does more that what I am using it for, maybe I will get a change to use auto-complete and code folding in future.