.gitignore includes IntelliJ files
Fixed potential NPEs
Merge pull request #2 from itrend/master

Fixing potential NPEs in PooledSemanticDatabase.getQueryResults()