0 Replies Latest reply on Jul 3, 2015 6:11 AM by claisseflorent

    Issue with user object

    claisseflorent

      Hi,

       

      I'm currently adapting a plugin from jive 7.0.2 to 8.0.1 and I have some troubles accessing user Object.

      Here if the implementation I use:

      User user = getUser();
      UserProfile userProfile = new UserProfile(user);
      String company = userProfile.getCompany();
      

      This code, that was working wonderfully on v7, does not provide any result now.

       

      I even tried that:

      User user = getUser();
      UserProfile userProfile = null;
      try {
           System.out.println("try");
           userProfile = new UserProfile(user);
      }
      catch (Exception e) {
           System.out.println("catch");
           e.printStackTrace();
           throw e;
      }
      System.out.println("then");
      String company = userProfile.getCompany();
      

      This code prompts "try" and nothing else. Not catch not then are executed.

       

      Is there something I missed in v8?

       

      Regards,

      Florent.