Skip to content

Internal Error in "My tickets" #1376

Open
@TomaszSzt

Description

@TomaszSzt

In some cases, in fact in both my servers, after some time "mytickets" page returns "Internal Error" for some users.

The logs do show NullPointerException at:

/src/main/java/com/gitblit/wicket/pages/MyTicketsPage.java
(....)
private List correspondingRepositories(Collection tickets) {
final HashMap<String, RepositoryModel> result = new HashMap<>();
for (QueryResult ticket : tickets) {
RepositoryModel repository = app().repositories().getRepositoryModel(ticket.repository);
HERE if (!result.containsKey(repository.getRID())) {
result.put(repository.getRID(), repository);
}
}

    return new ArrayList<>(result.values());
}

(...)

Steps to reproduce:

I couldn't figure it out. I wiped out lucene index in data/tickets/lucene what cleared the InternalError but also cleared the tickes. See next issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions