Corrected NullPointerException occurring when no global options were

available.
Fix supplied by Bernd Blacha.
This commit is contained in:
Diomidis Spinellis 2008-10-25 07:26:40 +00:00
parent 569d6849cc
commit 41b61d45e0
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,9 @@
<li> Fixed exception when an unknown class dependency is specified.
(Reported by Jan Schl&#252;ter).
</li>
<li> Corrected NullPointerException occurring when no global options were
available.
(Fix supplied by Bernd Blacha.)
</dd>
<dt>Version 5.1 2008-08-27 </dt><dd>

View File

@ -106,6 +106,8 @@ public class UmlGraph {
* Builds and outputs a single graph according to the view overrides
*/
public static void buildGraph(RootDoc root, OptionProvider op, Doc contextDoc) throws IOException {
if(getCommentOptions() == null)
buildOptions(root);
Options opt = op.getGlobalOptions();
root.printNotice("Building " + op.getDisplayName());
ClassDoc[] classes = root.classes();