Permalink
Browse files

Fixed instantiation of rendering parameter fields, which resulted in …

…NullPointerException (renderextra).
  • Loading branch information...
1 parent 63b253c commit 3d8b4204ce664288c11c1befb8f3e05ecc23f355 @egonw egonw committed with egonw Jun 8, 2010
@@ -59,7 +59,8 @@ public Boolean getDefault() {
return Boolean.TRUE;
}
}
- private WillDrawAtomNumbers willDrawAtomNumbers;
+ private WillDrawAtomNumbers willDrawAtomNumbers =
+ new WillDrawAtomNumbers();
Vector2d offset;
@@ -61,7 +61,8 @@ public Boolean getDefault() {
return Boolean.FALSE;
}
}
- private ShowAtomTypeNames showAtomTypeNames;
+ private ShowAtomTypeNames showAtomTypeNames =
+ new ShowAtomTypeNames();
public IRenderingElement generate(
IAtomContainer ac, IAtom atom, RendererModel model) {

0 comments on commit 3d8b420

Please sign in to comment.