Check for duplicate {param} even with data="" in {call}.
@@ -458,9 +458,6 @@ final class CheckTemplateCallsPass extends CompilerFileSetPass {
* </ul>
*/
private void checkCallParamNames(CallNode caller, TemplateNode callee) {
- // If all the data keys being passed are listed using 'param' commands, then check that all
- // required params of the callee are included.
- if (!caller.isPassingData()) {
if (callee != null) {
// Get param keys passed by caller.
Set<String> callerParamKeys = Sets.newHashSet();
@@ -474,6 +471,9 @@ final class CheckTemplateCallsPass extends CompilerFileSetPass {
callerParam.getKey().identifier());
}
}
+ // If all the data keys being passed are listed using 'param' commands, then check that all
+ // required params of the callee are included.
+ if (!caller.isPassingData()) {
// Check param keys required by callee.
List<String> missingParamKeys = Lists.newArrayListWithCapacity(2);
for (TemplateParam calleeParam : callee.getParams()) {
