askewseth / Concordanator

A java based application to create and search word concordances of public domain texts.
https://sible777.github.io/Concordanator
MIT License
0 stars 1 forks source link

Concordance loading NULL ref #27

Closed corysabol closed 8 years ago

corysabol commented 8 years ago

branch: CmdRepl

Peter Pan by J. M. Barrie > numoccur pan
Exception in thread "main" java.lang.NullPointerException
    at ClassLibrary.CmdRepl.numOccurences(CmdRepl.java:450)
    at ClassLibrary.CmdRepl.evalCmd(CmdRepl.java:228)
    at ClassLibrary.CmdRepl.startRepl(CmdRepl.java:127)
    at Concordanator.main(Concordanator.java:23)

The application crashes due to a NullPointerException when trying to query a "loaded" con.

I debugged this to learn that for some reason the con is never being deserialized properly and then this.concord in CmdRepl is being set to a null reference causing this to happen. So, the issue I think lies somewhere in the serialization/deserialization process.

Could @Metalaxe1 or @askewseth try to reproduce this and comment your findings here?

I will look into it more tomorrow. This same error also arises on any query command.

corysabol commented 8 years ago

I don't remember how we resolved this. But it's fixed, so I'm closing it.