- Graphics2D g2 = (Graphics2D)this.i.getGraphics().create();
- g2.transform(new java.awt.geom.AffineTransform(a.a, a.b, a.c, a.d, a.e, a.f));
- g2.drawImage(i2, 0, 0, null);
+ Graphics2D g2 = (Graphics2D)getGraphics();
+ if (a!=null) g2.drawImage(i2, new java.awt.geom.AffineTransform(a.a, a.b, a.c, a.d, a.e, a.f), null);
+ else g2.drawImage(i2, 0, 0, null);