Skip to content

Commit

Permalink
Fix a GenerateToolUsage issue with no examples
Browse files Browse the repository at this point in the history
Fixed an issue that would cause the GenerateToolUsage stage of the
build process to fail if it encountered a tool with a null set of
examples.
  • Loading branch information
dirmgr committed Dec 5, 2019
1 parent 54cf106 commit b0bfa20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ private static void writeExamples(final PrintWriter w, final String t,
final String s,
final LinkedHashMap<String[],String> m)
{
if (m.isEmpty())
if ((m == null) || m.isEmpty())
{
return;
}
Expand Down Expand Up @@ -807,7 +807,7 @@ private void printHTMLExamples(final PrintWriter w, final String t,
final String s,
final LinkedHashMap<String[],String> m)
{
if (m.isEmpty())
if ((m == null) || m.isEmpty())
{
return;
}
Expand Down

0 comments on commit b0bfa20

Please sign in to comment.