title: Liferay 7 : PermissionChecker not initialized while getting Organization custom field
body: <p>I've created custom field for Organization in Liferay 7 portal. Now I wanna get a value of the custom field and getting PrincipalException - PermissionChecker not initialized: </p>
  
  <pre><code>    Long userId = (Long) req.getSession().getAttribute(WebKeys.USER_ID);
      List&lt;Organization&gt; mylist = OrganizationLocalServiceUtil.getUserOrganizations(userId);
      if (!mylist.isEmpty()) {
  
          Organization organization = mylist.get(0);
  
          String orgUrl = group.getFriendlyURL();
  
  &gt;&gt;&gt;     ExpandoBridge expandoBridge = organization.getExpandoBridge();
          System.out.println(expandoBridge.getAttribute("custom_field"));
      }
  </code></pre>
  
  <p>exception :</p>
  
  <pre><code>Caused by: com.liferay.portal.kernel.security.auth.PrincipalException: PermissionChecker not initialized
  at com.liferay.portal.kernel.service.BaseServiceImpl.getPermissionChecker(BaseServiceImpl.java:81)
  at com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl.getData(ExpandoValueServiceImpl.java:122)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
  </code></pre>