From 6af237d20cf29331790bf7999d80095c4ba1b44a Mon Sep 17 00:00:00 2001 From: Louis Wolford Date: Mon, 22 Jun 2015 08:33:00 -0400 Subject: [PATCH 1/2] added note to readme about packaging jar --- README.md | 2 ++ src/main/java/gov/adlnet/xapi/model/ActivityDefinition.java | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f12144c..c4c31dd 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 ""; } } From 2047a7ef77cc7d739f8aad166c3ca4b05c1c73f3 Mon Sep 17 00:00:00 2001 From: Lou Wolford Date: Mon, 22 Jun 2015 08:35:12 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c4c31dd..7a5e205 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 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` +##### Note: To build jxapi jar with all included dependencies simply run `mvn package` # StatementClient