diff --git a/README.md b/README.md index f12144c..7a5e205 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ jxapi - Experience API Java library ===== [![Build Status](https://travis-ci.org/adlnet/jxapi.png?branch=master)](https://travis-ci.org/adlnet/jxapi) +##### Note: To build jxapi jar with all included dependencies simply run `mvn package` + # StatementClient To instantiate a new StatementClient you need the URL to an LRS, and a username/password combo that works for HTTP BasicAuth diff --git a/src/main/java/gov/adlnet/xapi/model/ActivityDefinition.java b/src/main/java/gov/adlnet/xapi/model/ActivityDefinition.java index 0d8b946..2f78146 100644 --- a/src/main/java/gov/adlnet/xapi/model/ActivityDefinition.java +++ b/src/main/java/gov/adlnet/xapi/model/ActivityDefinition.java @@ -203,6 +203,9 @@ public String toString() { return ""; } public String toString(String langMap) { - return name.get(langMap); + if (name != null){ + return name.get(langMap); + } + return ""; } }