maTayefi / spellbook-dictionary

Automatically exported from code.google.com/p/spellbook-dictionary
0 stars 0 forks source link

NPE on spellchecker start #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
You've introduced a regression in the spellchecker - the first time it 
starts I get this:

15809 [AWT-EventQueue-0] INFO 
com.drowltd.spellbook.ui.desktop.spellcheck.SpellCheckFrame - offset: 0
15809 [AWT-EventQueue-0] INFO 
com.drowltd.spellbook.ui.desktop.spellcheck.SpellCheckFrame - length: 0
15809 [AWT-EventQueue-0] INFO 
com.drowltd.spellbook.ui.desktop.spellcheck.MisspelledFinder - Starting 
execution of new search
15817 [AWT-EventQueue-0] ERROR 
com.drowltd.spellbook.core.spellcheck.SpellChecker - instance is null
15832 [AWT-EventQueue-0] INFO 
com.drowltd.spellbook.ui.swing.component.SpellbookDefaultExceptionHandler - 
Unexpected problem on thread AWT-EventQueue-0: instance is null
java.lang.IllegalStateException: instance is null
    at 
com.drowltd.spellbook.core.spellcheck.SpellChecker.getInstance(SpellChecker
.java:274)
    at 
com.drowltd.spellbook.ui.desktop.spellcheck.MisspelledFinder.findMisspelled
(MisspelledFinder.java:58)
    at 
com.drowltd.spellbook.ui.desktop.spellcheck.SpellCheckFrame$14.actionPerfor
med(SpellCheckFrame.java:335)
    at javax.swing.Timer.fireActionPerformed(Timer.java:271)
    at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
    at 
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.jav
a:269)
    at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:1
84)
    at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav
a:174)
    at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by lord...@gmail.com on 17 May 2010 at 7:50

GoogleCodeExporter commented 8 years ago
I couldn't reproduce it. Please check if this still happens.

Original comment by iivalchev@gmail.com on 19 May 2010 at 12:02

GoogleCodeExporter commented 8 years ago
This issue is 100% reproducible on each of my three computers... I start 
spellbook, I 
click on the spellchecker, the progress overlay appears and it's followed by 
the 
NPE... 

Original comment by lord...@gmail.com on 19 May 2010 at 1:16

GoogleCodeExporter commented 8 years ago
I didn't see the possible fix - with it the spellchecker work ok.

Original comment by lord...@gmail.com on 19 May 2010 at 1:22