[ http://jira.xwiki.org/jira/browse/XWIKI-2040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22215 ]
Vincent Massol commented on XWIKI-2040: --------------------------------------- Sergiu I see this in the test results: {noformat} [15:12:31]: Running com.xpn.xwiki.api.UserTest [15:12:31]: 2008-02-01 15:12:30,871 [] [main] WARN api.User - Unhandled exception checking if user null belongs to group XWiki.InexistentGroupName [15:12:31]: java.lang.NullPointerException [15:12:31]: at com.xpn.xwiki.api.User.isUserInGroup(User.java:83) [15:12:31]: at com.xpn.xwiki.api.UserTest.testIsUserInGroupDoesNotThrowNPE(UserTest.java:21) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [15:12:31]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [15:12:31]: at java.lang.reflect.Method.invoke(Method.java:585) [15:12:31]: at junit.framework.TestCase.runTest(TestCase.java:164) [15:12:31]: at org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39) [15:12:31]: at junit.framework.TestResult$1.protect(TestResult.java:106) [15:12:31]: at junit.framework.TestResult.runProtected(TestResult.java:124) [15:12:31]: at junit.framework.TestResult.run(TestResult.java:109) [15:12:31]: at junit.framework.TestCase.run(TestCase.java:120) [15:12:31]: at junit.framework.TestSuite.runTest(TestSuite.java:230) [15:12:31]: at junit.framework.TestSuite.run(TestSuite.java:225) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [15:12:31]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [15:12:31]: at java.lang.reflect.Method.invoke(Method.java:585) [15:12:31]: at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) [15:12:31]: at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) [15:12:31]: at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) [15:12:31]: at org.apache.maven.surefire.Surefire.run(Surefire.java:177) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [15:12:31]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [15:12:31]: at java.lang.reflect.Method.invoke(Method.java:585) [15:12:31]: at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334) [15:12:31]: at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980) {noformat} is it possible to remove that exception from the test logs? By capturing the output maybe? > api.User#isUserInGroup should not throw exceptions > -------------------------------------------------- > > Key: XWIKI-2040 > URL: http://jira.xwiki.org/jira/browse/XWIKI-2040 > Project: XWiki Platform > Issue Type: Bug > Components: APIs > Affects Versions: 1.2 > Reporter: Sergiu Dumitriu > Assigned To: Sergiu Dumitriu > Priority: Minor > Fix For: 1.3 M2 > > Attachments: isUserInGroupExceptions200801310302.txt > > > Sometimes a NullPointerException is thrown, which should be caught. > {noformat} > java.lang.NullPointerException > at com.xpn.xwiki.api.User.isUserInGroup(User.java:51) > {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications