Skip to content

Commit

Permalink
Avoid nullpointer in service lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Jul 13, 2013
1 parent fe039f4 commit 22f14d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public ServiceRegistry getServiceRegistry()

public void setServiceRegistry(ServiceRegistry registry)
{
this.registry = registry;
this.registry = (registry != null ? registry : new NullServiceRegistry());
}

}

0 comments on commit 22f14d1

Please sign in to comment.