Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1312 Fixed IndexError in tomof() of some CIM objects on empty array value #1313

Merged
merged 1 commit into from
Jul 20, 2018

Commits on Jul 20, 2018

  1. Fixed IndexError in tomof() of CIMProperty, CIMQualifier/+Declaration…

    … on empty array value
    
    Details:
    
    * Fixed the issue where `CIMInstance.tomof()` raised `IndexError` when it
      contains an array property whose value is the empty array. This would
      also happen in `CIMProperty.tomof(is_instance=True,...)` on an empty array
      value.
      The value of the empty array is represented as an empty string, and this is
      now checked before accessing it.
    
    * Extended fix to also cover CIMQUalifier and CIMQUalifierDeclaration.
    
    * Added according testcases to test_cim_obj.py.
    
    Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
    andy-maier committed Jul 20, 2018
    Configuration menu
    Copy the full SHA
    ab3a8d2 View commit details
    Browse the repository at this point in the history