public static List < Action > getActions ( MonitoringRule rule ) { List < Action > result ; if ( rule . getActions ( ) != null && rule . getActions ( ) . getActions ( ) != null ) { result = rule . getActions ( ) . getActions ( ) ; } else { result = Collections . < Action > emptyList ( ) ; } return result ; }
Wrapper to avoid a NPE