NullPointerException when creating review from AccuRev repository

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Symptoms

A NullPointerException happens when creating a review adding content from an AccuRev repository and leaving the title of the review blank.

Steps to Reproduce:

  1. Click on Create Review. It takes directly to the Add Content menu.

  2. Click on Browse changesets and choose some changeset from an AccuRev repository.

  3. Click in Done to create the review.

The following appears in the atlassian-fisheye.log:

1 2 3 4 5 6 7 2014-12-04 10:00:00,000 WARN [qtp16353814-6568 ] fisheye TxHelper-rollbackTxIfNotCommitted - Rolled back transaction started from: java.lang.Throwable: (Stacktrace at transaction start) (...) 2014-12-04 10:14:30,917 ERROR [qtp16353814-6568 ] fisheye TotalityFilter-logExceptionDetails - Exception "java.lang.NullPointerException" (javax.servlet.ServletException) while processing "/cru/editRevisionsAjax.do" (Referer:"http://localhost:8060/cru/CR-1/edit-changelog/repo/") javax.servlet.ServletException: java.lang.NullPointerException (...) Caused by: java.lang.NullPointerException

Solution

If you use the AccuRev plugin this is most likely a bug and you should reach out to AccuRev Support for further information. If you do not have AccuRev you may be running into the following bug: CRUC-7259 - NullPointerException When Creating a Review Where Latest Changeset Has No Commit Message

If you do not have AccuRev please follow the resolution and workarounds listed on the bug ticket, if you do have AccuRev continue reading this page.

Workaround

Workaround 1: Before clicking in Done to create the review, click in Edit Details and add a title to the review.

Workaround 2: Add the repository as a native repository (FishEye/Crucible Administration > Repositories > 'Native Repository access' tab > Add Repository) and create the review from this repository.

Resolution

Version 2014.4-SNAPSHOT of the AccuRev plugin resolves this issue. Please upgrade the plugin in your Fisheye/Crucible instance.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.