Skip to content

Commit

Permalink
SAK-26269 LTiService.filterContent can accept nulls.
Browse files Browse the repository at this point in the history
  • Loading branch information
buckett committed Dec 15, 2015
1 parent ebcd17f commit fb52304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1662,10 +1662,7 @@ public static Properties getPropertiesFromPlacement(String placement_id, LTIServ
if ( tool == null ) return null;

// Adjust the content items based on the tool items
if ( tool != null || content != null )
{
ltiService.filterContent(content, tool);
}
ltiService.filterContent(content, tool);

for (String formInput : LTIService.TOOL_MODEL) {
Properties info = parseFormString(formInput);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,7 @@ else if ( refId.startsWith("content:") && refId.length() > 8 )
}
}

// Adjust the content items based on the tool items
if ( tool != null || content != null )
{
ltiService.filterContent(content, tool);
}
ltiService.filterContent(content, tool);
}
String splash = null;
if ( tool != null ) splash = (String) tool.get("splash");
Expand Down

0 comments on commit fb52304

Please sign in to comment.