Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2.0
Description
The following error is thrown when the user who is logging in has added a project as a favourite, that has been deleted.
2009-07-09 17:39:35,437 ERROR [btpool0-12] org.mortbay.log org.mortbay.log.Slf4jLog-warn - /home java.lang.NullPointerException at com.atlassian.fisheye.stars.model.ProjectStar.getName(ProjectStar.java:42) at com.atlassian.fisheye.stars.tags.StarData.<init>(StarData.java:52) at com.atlassian.fisheye.stars.tags.StarWebUtil.getLoggedInUsersStars(StarWebUtil.java:98) at com.atlassian.fisheye.user.action.UserHomePageAction.execute(UserHomePageAction.java:40) at com.atlassian.fisheye.user.action.BaseUserPageAction.initThenExecute(BaseUserPageAction.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Steps to reproduce:
- Login as admin to create an user and a project
- Login as the newly created user
- Add the project to favourite
- Logout the user
- Remove the project via Admin > Projects List
- Error occurs when the user login again
The similar problem happens when a repository is deleted.
2009-07-09 18:04:57,078 ERROR [btpool0-14] org.mortbay.log org.mortbay.log.Slf4jLog-warn - Nested in javax.servlet.jsp.JspException: javax.el.ELException: Problems calling function 'cru:getRepoType': javax.el.ELException: Problems calling function 'cru:getRepoType' at com.sun.el.parser.AstFunction.getValue(AstFunction.java:132) at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206) at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001) at org.apache.jsp.tag.web.cru.star.tableRow_tag._jspx_meth_c_set_1(tableRow_tag.java:301) at org.apache.jsp.tag.web.cru.star.tableRow_tag._jspx_meth_c_when_1(tableRow_tag.java:256) at org.apache.jsp.tag.web.cru.star.tableRow_tag._jspx_meth_c_choose_0(tableRow_tag.java:158) at org.apache.jsp.tag.web.cru.star.tableRow_tag.doTag(tableRow_tag.java:125)
Steps to reproduce:
- Create a repository
- Login as the user and add the repository as favourite
- Now, remove the repository from admin page
- Somehow, the removed repo still persists via the favourite tab e.g see this screen shot
- Clicking the "Manage Favorite" tab leads to this error