Skip to content
  • Jason Yellick's avatar
    7918d5ed
    [FAB-3831] Report empty application/orderer groups · 7918d5ed
    Jason Yellick authored
    
    
    The config interface currently returns the application/orderer config
    groups as an interface definition.  Because of this, a simple nil check
    will not generally determine whether the config is actually set, and
    consequently attempting to access the config may cause a nil pointer
    dereference (even when the nil check returns false).
    
    This CR adds a bool to this interface, to allow the caller to determine
    whether the interface has been populated.
    
    Change-Id: I37e0ba25dcacffb273e5712f072d65786206b05b
    Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
    7918d5ed
    [FAB-3831] Report empty application/orderer groups
    Jason Yellick authored
    
    
    The config interface currently returns the application/orderer config
    groups as an interface definition.  Because of this, a simple nil check
    will not generally determine whether the config is actually set, and
    consequently attempting to access the config may cause a nil pointer
    dereference (even when the nil check returns false).
    
    This CR adds a bool to this interface, to allow the caller to determine
    whether the interface has been populated.
    
    Change-Id: I37e0ba25dcacffb273e5712f072d65786206b05b
    Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
Loading