diff --git a/src/main/java/eu/hansolo/medusa/FGauge.java b/src/main/java/eu/hansolo/medusa/FGauge.java index e48a363a..cb116830 100644 --- a/src/main/java/eu/hansolo/medusa/FGauge.java +++ b/src/main/java/eu/hansolo/medusa/FGauge.java @@ -72,9 +72,14 @@ public FGauge(final Gauge GAUGE, final GaugeDesign DESIGN, final GaugeBackground gaugeBackground = BACKGROUND; Skin skin = gauge.getSkin(); + /* if (null != skin && gauge.getSkin().getClass() != GaugeSkin.class) { throw new RuntimeException("Please change Skin to GaugeSkin."); } + */ + if (null != skin) { + throw new RuntimeException("Please change Skin to a valid Skin."); + } init(); initGraphics();