Menu

#3 NullPointerException from TextProcessor.getEnglishWordTokens()

2.0
closed
bug (1)
2017-12-15
2017-11-19
No

FYI, if a null string is passed to TextProcessor.getEnglishWordTokens() fails with a NullPointerException at https://sourceforge.net/p/gnat/code/HEAD/tree/GNAT/src/gnat/preprocessing/TextPreprocessor.java#l73

java.lang.NullPointerException
    at gnat.preprocessing.TextPreprocessor.getEnglishWordTokens(TextPreprocessor.java:73)
    at gnat.representation.GeneContextModel.addEntrezGeneSummary(GeneContextModel.java:56)
    at gnat.database.GeneRepositoryFromDatabase.getGeneRepositoryFAST(GeneRepositoryFromDatabase.java:371)
    at gnat.filter.nei.GeneRepositoryLoader.filter(GeneRepositoryLoader.java:192)
    at gnat.client.Run.runFilters(Run.java:189)

I was able to work around it by updating the GNAT.GR_Summary table as:

update GR_Summary set summary="" where summary is null;

Cheers

Related

Tickets: #3

Discussion

  • Jörg Hakenberg

    Jörg Hakenberg - 2017-12-15

    Fixed in source code; still need to re-up new binaries.

     
  • Jörg Hakenberg

    Jörg Hakenberg - 2017-12-15
    • status: open --> closed
    • assigned_to: Jörg Hakenberg
     
  • Jörg Hakenberg

    Jörg Hakenberg - 2017-12-15
    • Milestone: 1.0 --> 2.0
     
  • Jörg Hakenberg

    Jörg Hakenberg - 2017-12-15

    Thanks for pointing this out!
    I committed a code fix to Sourceforge but still need to generate new
    binaries for people to download if they are not working off the source code.
    Thanks again,
    Joerg

    On Sat, Nov 18, 2017 at 6:35 PM, Kuni Katsuya kczi@users.sf.net wrote:


    Status: open
    Milestone: 1.0
    Labels: bug
    Created: Sun Nov 19, 2017 02:35 AM UTC by Kuni Katsuya
    Last Updated: Sun Nov 19, 2017 02:35 AM UTC
    Owner: nobody

    FYI, if a null string is passed to TextProcessor.getEnglishWordTokens()
    fails with a NullPointerException at https://sourceforge.net/p/
    gnat/code/HEAD/tree/GNAT/src/gnat/preprocessing/TextPreprocessor.java#l73

    java.lang.NullPointerException
    at gnat.preprocessing.TextPreprocessor.getEnglishWordTokens(TextPreprocessor.java:73)
    at gnat.representation.GeneContextModel.addEntrezGeneSummary(GeneContextModel.java:56)
    at gnat.database.GeneRepositoryFromDatabase.getGeneRepositoryFAST(GeneRepositoryFromDatabase.java:371)
    at gnat.filter.nei.GeneRepositoryLoader.filter(GeneRepositoryLoader.java:192)
    at gnat.client.Run.runFilters(Run.java:189)

    I was able to work around it by updating the GNAT.GR_Summary table as:

    update GR_Summary set summary="" where summary is null;

    Cheers

    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/gnat/tickets/3/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Tickets: #3


Log in to post a comment.