Skip to content

Commit

Permalink
Template arguments should not be null
Browse files Browse the repository at this point in the history
If the generated annotation isn't available use the empty string instead of
null.

Fixes #645

RELNOTES=N/A

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=202048570
  • Loading branch information
cushon committed Jun 26, 2018
1 parent fd6c6fa commit 32a0ae3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private void processMethod(ExecutableElement method) {
private String getGeneratedTypeName() {
return generatedAnnotation(elementUtils, processingEnv.getSourceVersion())
.map(generatedAnnotation -> TypeEncoder.encode(generatedAnnotation.asType()))
.orElse(null);
.orElse("");
}

/**
Expand Down

0 comments on commit 32a0ae3

Please sign in to comment.