Uploaded image for project: 'SongKong'
  1. SONGKONG-1386

Should better handle if non-existent fieldnames in songkong.properties

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.13
    • Fix Version/s: 5.0
    • Component/s: User Options
    • Labels:
      None
    • Forum Username:
      paul

      Description

      Shoud better handle if non-existent fieldnames in songkong.properties, e.g samplerate listed as field to never modify, shoiudnt hang.

      java.lang.IllegalArgumentException: No enum constant com.jthink.songkong.text.SongFieldName.SAMPLE_RATE
      at java.lang.Enum.valueOf(Unknown Source)
      at com.jthink.songkong.text.SongFieldName.valueOf(SongFieldName.java:13)
      at com.jthink.songkong.text.SongFieldName.convertUserPreferenceToList(SongFieldName.java:269)
      at com.jthink.songkong.text.SongFieldName.convertUserPreferenceToCommaSeperatedString(SongFieldName.java:287)
      at com.jthink.songkong.ui.startdialog.FormatOptions.<init>(FormatOptions.java:89)
      at com.jthink.songkong.ui.startdialog.StartFixSongsDialog.setupDialog(StartFixSongsDialog.java:81)
      at com.jthink.songkong.ui.startdialog.StartFixSongsDialog.<init>(StartFixSongsDialog.java:45)
      at com.jthink.songkong.action.FixFilesAction.actionPerformed(FixFilesAction.java:73)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

        Attachments

          Activity

            People

            • Reporter:
              ijabz IJabz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: