NullPointerException when creating a review for a file from Perforce

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

Problem

When creating a review for a file that comes from a Perforce repository Fisheye/Crucible throws a NullPointerException and the following appears in the atlassian-fisheye.log

1 2 3 2015-04-29 14:00:00,000 WARN [qtp1491126818-31907 ] fisheye StreamIndexedLineReader-guardLineNumber - unknown line number 13 only know about 12 in P4:Perforce:Repo/path/to/file 2015-04-29 14:00:00,001 ERROR [qtp1491126818-31918 ] fisheye TotalityFilter-logExceptionDetails - Exception "java.lang.NullPointerException" (javax.servlet.ServletException) while processing "/cru/createDialog.do" (Referer:"https://fisheye.corp.alexa.com/browse/Perforce/Repo/path/to/file") javax.servlet.ServletException: java.lang.NullPointerException

Cause

This issue is usually due to mixed line endings which confuses Fisheye.

Resolution

  1. Go to FishEye/Crucible Administration > Repositories and open the repository configuration.

  2. At SCM Details set the option Disable Multiple Print.

  3. At Maintenance, under Repository Source Index, click Start for Re-index. This will rebuild the indexes for this repository from scratch.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.