[
https://issues.apache.org/jira/browse/SHINDIG-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Balaji Srinivasan updated SHINDIG-968:
--------------------------------------
Attachment: patch.txt
Small patch.
> Typo in GadgetFeatureRegistryTest.java
> ---------------------------------------
>
> Key: SHINDIG-968
> URL: https://issues.apache.org/jira/browse/SHINDIG-968
> Project: Shindig
> Issue Type: Bug
> Components: Java
> Affects Versions: trunk
> Reporter: Balaji Srinivasan
> Priority: Trivial
> Fix For: trunk
>
> Attachments: patch.txt
>
> Original Estimate: 0.02h
> Remaining Estimate: 0.02h
>
> In
> java/gadgets/src/test/java/org/apache/shindig/gadgets/GadgetFeatureRegistryTest.java
> line 63, you see the following code:
> List<String> deps = Lists.newLinkedList();
> if (deps != null) {
> deps.add(dep);
> }
> I think this should instead be
> List<String> deps = Lists.newLinkedList();
> if (dep != null) {
> deps.add(dep);
> }
> Otherwise if you call makeFeature with a null dep, a null object will
> be added to deps (which is probably not what you want).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.