Issue Summary
Accessing a saved filter that contains Assets object value with both its label and object key could result in an error page with error "java.lang.NullPointerException: Cannot invoke "com.riadalabs.jira.plugins.insight.services.model.ObjectBean.getLabel()" because "objectBean" is null"
Steps to Reproduce
- Use the advanced search to search for issues with a specific Assets object on the Assets custom field with the auto-complete suggestions. An example JQL looks like this.
project = "ITSM" and "Affected Server" = "exchange.prod.app1 (ASITSM-1)"
- Save the filter.
- Create and save another filter using basic search to search with the same criteria. After selecting the fields and switching to advanced search, the JQL would look like this. Note that the object value has only the object key on it.
project = "ITSM" and "Affected Server" = ASITSM-1
- Access both filters by either copying the URL and opening in a new tab, refreshing the same page (<baseURL>/issues/?filter=id) or via Issues (top menu bar) > Manage filters.
Expected Results
Both filters can be accessed without any error
Actual Results
The filter takes a long while to load and eventually fails with an error page as shown below. Error java.lang.NullPointerException: Cannot invoke "com.riadalabs.jira.plugins.insight.services.model.ObjectBean.getLabel()" because "objectBean" is null can be seen.
Accessing the affected filter on the issue navigator directly works fine.
Workaround
Edit the saved filter to use only object key for the Assets custom field, or rebuild the JQL using basic search and ensure that the format of the Assets custom field and its value is as shown below.
"custom_field_name" = object_key
For example,
"Affected Server" = ITSM-1
Versions Tested
Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below:
Testing Requirements |
Version |
Affected Version |
Customers Reported Version |
10.5.1 |
Yes |
Most Recent Bug-Fix Release |
|
|
Previous Major Release |
|
|
Most Recent LTS |
10.3.5 |
No |
Previous Supported LTS |
|
|