Menu

ImageCommand.run IndexOutOfBoundsException

FanxTara
2011-07-31
2013-04-30
  • FanxTara

    FanxTara - 2011-07-31

    ConvertCmd.run() throws IndexOutOfBoundsException with ImageMagick-6.7.0-10.
    "finished" function tries to fetch error description from iErrorText if pReturnCode > 0.
    But actually iErrorText's size is 0 and iErrorText.get(0) should always throw IndexOutOfBoundsException.

    Adding to above, I want to know the error code at least, if there's no error description available.
    Sadly, there's no interface like that.

     
  • Bernhard Bablok

    Bernhard Bablok - 2011-08-01

    Thanks for the hint. I will fix this in the next release.  I will add a field for the error code to the CommandException.

    Bernhard

     

Log in to post a comment.