Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed instantiation of rendering parameter fields, which resulted in …

…NullPointerException (renderextra).
  • Loading branch information...
commit 3d8b4204ce664288c11c1befb8f3e05ecc23f355 1 parent 63b253c
Egon Willighagen egonw authored egonw committed
3  src/main/org/openscience/cdk/renderer/generators/AtomNumberGenerator.java
View
@@ -59,7 +59,8 @@ public Boolean getDefault() {
return Boolean.TRUE;
}
}
- private WillDrawAtomNumbers willDrawAtomNumbers;
+ private WillDrawAtomNumbers willDrawAtomNumbers =
+ new WillDrawAtomNumbers();
Vector2d offset;
3  src/main/org/openscience/cdk/renderer/generators/ExtendedAtomGenerator.java
View
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.