Description
Instance list APIs fail when orderBy param is set to starttime or endtime on Instances whose status is "WAITING" or "RUNNING".
In the above case, starttime is not yet set for Instance and the orderBy code block throws a null pointer exception when it tries to compare NULL dates.