Changeset 1030


Ignore:
Timestamp:
Nov 1, 2010, 2:17:16 PM (10 years ago)
Author:
robert@…
Message:

Extra check whether an owner has been added for a study, to prevent a null-pointer exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/study/show.gsp

    r1027 r1030  
    292292              <g:each in="${studyList}" var="studyInstance">
    293293                <td>
    294                    ${studyInstance.owner.username}
     294                   ${studyInstance.owner?.username}
    295295                </td>
    296296              </g:each>
     
    313313              <g:each in="${studyList}" var="studyInstance">
    314314                <td>
    315                   <g:if test="${studyInstance.writers.size()==0}">
     315                  <g:if test="${studyInstance.writers?.size()==0}">
    316316                    -
    317317                  </g:if>
Note: See TracChangeset for help on using the changeset viewer.