Fixed NullPointerException when processing unknown entity types
This commit is contained in:
parent
620449f2f2
commit
068542223d
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ public class EntityUtils extends Queue {
|
||||||
|
|
||||||
public static EntityType getEntityType(int id) {
|
public static EntityType getEntityType(int id) {
|
||||||
// Internal ID pulled from DB
|
// Internal ID pulled from DB
|
||||||
EntityType entitytype = null;
|
EntityType entitytype = EntityType.UNKNOWN;
|
||||||
if (ConfigHandler.entitiesReversed.get(id) != null) {
|
if (ConfigHandler.entitiesReversed.get(id) != null) {
|
||||||
String name = ConfigHandler.entitiesReversed.get(id);
|
String name = ConfigHandler.entitiesReversed.get(id);
|
||||||
if (name.contains(NAMESPACE)) {
|
if (name.contains(NAMESPACE)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue