On Fri, 2013-02-08 at 19:38 +0200, [email protected] wrote: > From: marios <[email protected]> > > https://issues.apache.org/jira/browse/DTACLOUD-460 > > Signed-off-by: marios <[email protected]> > --- > server/views/realms/show.xml.haml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/server/views/realms/show.xml.haml > b/server/views/realms/show.xml.haml > index 268cb65..54052a4 100644 > --- a/server/views/realms/show.xml.haml > +++ b/server/views/realms/show.xml.haml > @@ -9,6 +9,6 @@ > %limit< > =cdata do > [email protected] > - - @realm.resource_types.each do |r| > + - (@realm.resource_types || []).each do |r|
ACK(ish) .. IMHO, better would be to make sure that @realm.resource_types always returns an array, and never nil. David
