Skip to content

Commit

Permalink
SAK-25389 - allow for a null provider
Browse files Browse the repository at this point in the history
git-svn-id: https://source.sakaiproject.org/svn/taggable/trunk@131590 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
Damian Sobiera committed Nov 15, 2013
1 parent be117fd commit 550da01
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ public TaggableActivityProducer findProducerByRef(String ref) {
}

public String getContext(String ref) {
return findProducerByRef(ref).getContext(ref);
TaggableActivityProducer producer = findProducerByRef(ref);
if (producer != null)
return producer.getContext(ref);
return null;
}

public TaggableActivityProducer findProducerById(String id) {
Expand Down

0 comments on commit 550da01

Please sign in to comment.