Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null Pointer in DefaultAMIDictionary.getMaximumTermSize #68

Open
petermr opened this issue Oct 20, 2020 · 1 comment
Open

Null Pointer in DefaultAMIDictionary.getMaximumTermSize #68

petermr opened this issue Oct 20, 2020 · 1 comment

Comments

@petermr
Copy link
Owner

petermr commented Oct 20, 2020

@Peter Murray-Rust I was trying to create a sample dictionary (terms 10) using the syntax amidict -vv --dictionary disease --directory dictionary --input sparql_dis10 create --informat wikisparqlxml --sparqlmap name=wikidataLabel,term=wikidataLabel,wikipediaPage=wikipedia,wikidataURL=wikidata,description=wikidataDescription,wikidataAltLabel=wikidataAltLabel,_p494_icd10code=ICD_10,Hindi=hindiLabel,Hindi_AltLabel=hindialtlabel,Hindi_description=hindi,Hindi_wikipediaPage=hindiwikipedia,Tamil=tamilLabel,Tamil_AltLabel=tamilaltlabel,Tamil_description=tamil,Tamil_wikipediaPage=tamilwikipedia,Spanish=spanishLabel,Spanish_AltLabel=spanishaltlabel,Spanish_description=spanish,Urdu=urduLabel,Urdu_AltLabel=urdualtlabel,Urdu_description=urdu,Portuguese=ptLabel,Portuguese_AltLabel=ptaltlabel,Portuguese_desription=pt --transformName wikidataID=EXTRACT(wikidataURL,.*/(.*)) --synonyms=wikidataAltLabel for this SPARQL file but got the output as
.
.
java.lang.NullPointerException
        at org.contentmine.ami.dictionary.DefaultAMIDictionary.getMaximumTermSize(DefaultAMIDictionary.java:346)
        at org.contentmine.ami.dictionary.DefaultAMIDictionary.getTermsSortedBySize(DefaultAMIDictionary.java:324)
        at org.contentmine.ami.dictionary.DefaultAMIDictionary.toString(DefaultAMIDictionary.java:387)
        at java.lang.String.valueOf(Unknown Source)
.
@petermr
Copy link
Owner Author

petermr commented Oct 20, 2020

I think this bug has been fixed in the latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant