Changeset 157

Show
Ignore:
Timestamp:
01/10/10 10:58:27 (2 years ago)
Author:
stefan
Message:

fixed bug #169: exception is thrown when starting recording without selected program

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r156 r157  
    662010-01-10 
    77* [stefan]  * done enhancement #156: replace buttons with nicer ones 
     8            * fixed bug #169: exception is thrown when starting recording without selected program 
    89 
    910== 0.7.3 == 
  • trunk/src/org/jergometer/Jergometer.java

    r144 r157  
    334334  public void startRecording() { 
    335335    if (!recording) { 
     336      if (program == null) { 
     337        JOptionPane.showMessageDialog(mainWindow, I18n.getString("msg.choose_a_program")); 
     338        return; 
     339      } 
     340 
    336341      // clear diagram and draw the bike program 
    337342      selectBikeProgram(program); 
     
    360365        e.printStackTrace(); 
    361366        JOptionPane.showMessageDialog(mainWindow, I18n.getString("msg.connection_failed"), I18n.getString("error_dialog.title"), JOptionPane.ERROR_MESSAGE); 
    362         return; 
    363       } 
    364  
    365       if (program == null) { 
    366         JOptionPane.showMessageDialog(mainWindow, I18n.getString("msg.choose_a_program")); 
    367367        return; 
    368368      }