Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Return the default if the value has not been overwritten with setValue()

  • Loading branch information...
commit 2257b120b16a2b2a0cd487470a8aae8bbfaa8480 1 parent dac6c00
Scooter Morris scootermorris authored egonw committed
5 src/main/org/openscience/cdk/renderer/generators/parameter/
@@ -47,7 +47,10 @@ public void setValue(T value) {
* @param value the new parameter value
public T getValue() {
- return this.parameterSetting;
+ if (this.parameterSetting == null)
+ return getDefault();
+ else
+ return this.parameterSetting;
Please sign in to comment.
Something went wrong with that request. Please try again.