Skip to content

Commit

Permalink
Added some more parameter validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Casperson authored and Matthew Casperson committed Apr 5, 2017
1 parent d37d02b commit 284b8b3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ public void initialise(
@NotNull
@Override
public synchronized FeatureState getDesiredCapabilitiesForThread(@NotNull final String name) {
checkArgument(StringUtils.isNotBlank(name));
checkArgument(name.startsWith(Constants.THREAD_NAME_PREFIX));

if (threadIdToCapMap.containsKey(name)) {
return threadIdToCapMap.get(name);
}
Expand Down

0 comments on commit 284b8b3

Please sign in to comment.