Bugfix: bazaar crash if no quest data

This commit is contained in:
Doublestrike
2012-02-14 07:40:56 +00:00
parent c854b7a9f0
commit b6483a9584
2 changed files with 2 additions and 1 deletions

View File

@@ -143,6 +143,8 @@ public class ViewStall extends JPanel {
* and creates new panels if necessary. * and creates new panels if necessary.
*/ */
public void updateStall() { public void updateStall() {
if (AllZone.getQuestData() == null) { return; }
this.lblStats.setText( this.lblStats.setText(
"Credits: " + AllZone.getQuestData().getCredits() "Credits: " + AllZone.getQuestData().getCredits()
+ " Life: " + AllZone.getQuestData().getLife()); + " Life: " + AllZone.getQuestData().getLife());

View File

@@ -230,7 +230,6 @@ public class FPanel extends JPanel {
else if (selectable) { g2d0.setColor(FSkin.getColor(FSkin.Colors.CLR_INACTIVE)); } else if (selectable) { g2d0.setColor(FSkin.getColor(FSkin.Colors.CLR_INACTIVE)); }
else { g2d0.setColor(getBackground()); } else { g2d0.setColor(getBackground()); }
// Parent must be drawn onto clipped object.
g2d0.fillRoundRect(0, 0, pnlW, pnlH, cornerDiameter, cornerDiameter); g2d0.fillRoundRect(0, 0, pnlW, pnlH, cornerDiameter, cornerDiameter);
} }