• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.0
    • 1.0.0
    • None
    • 1.0.0M8 and 4.9.0M8
    • 4.9.0 M9
    • Oui

      Steps to reproduce bug :

      1/Create a RC conversation in Ametys with multiple users

      2/Delete one of the users

       

      Bug :

      Message : Can not dispatch request '0' : 'core-ui' 'client-call' '{role=org.ametys.plugins.rocket.chat.RocketChatHelper, id=null, methodName=getLastMessages, parameters=[]}'
      Emplacement : org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)
      Pile d'appels :
      org.apache.cocoon.util.location.LocatedException: Can not dispatch request '0' : 'core-ui' 'client-call' '{role=org.ametys.plugins.rocket.chat.RocketChatHelper, id=null, methodName=getLastMessages, parameters=[]}'
      at org.ametys.core.ui.dispatcher.DispatchGenerator#_handleError:314
      
      
      Caused by: java.lang.NullPointerException: Cannot invoke "org.ametys.core.user.User.getIdentity()" because "u" is null
      at org.ametys.plugins.rocket.chat.RocketChatHelper#lambda$getLastMessages$2:716
      at java.base/java.util.stream.ReferencePipeline$3$1#accept:197
      at java.base/java.util.AbstractList$RandomAccessSpliterator#forEachRemaining:722
      at java.base/java.util.stream.AbstractPipeline#copyInto:509
      at java.base/java.util.stream.AbstractPipeline#wrapAndCopyInto:499
      at java.base/java.util.stream.AbstractPipeline#evaluate:575
      at java.base/java.util.stream.AbstractPipeline#evaluateToArrayNode:260
      at java.base/java.util.stream.ReferencePipeline#toArray:616
      at java.base/java.util.stream.ReferencePipeline#toArray:622
      at java.base/java.util.stream.ReferencePipeline#toList:627
      at org.ametys.plugins.rocket.chat.RocketChatHelper#getLastMessages:719
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor#invoke:103

       

            raphael Raphaël Franchet
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: