Skip to content

Commit

Permalink
Fix null pointer when trying to load documents for change api provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharika Madurapperuma committed Oct 5, 2024
1 parent 12c51a3 commit 2470396
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3968,6 +3968,10 @@ public AdminContentSearchResult searchContentForAdmin(String org, String searchQ
String type;
if (apiArtifactId != null) {
GenericArtifact apiArtifact = apiArtifactManager.getGenericArtifact(apiArtifactId);
if (apiArtifact == null) {
// This is a document resource
continue;
}
if (apiArtifact.getAttribute(APIConstants.API_OVERVIEW_TYPE).
equals(APIConstants.API_PRODUCT)) {
type = APIConstants.API_PRODUCT;
Expand Down

0 comments on commit 2470396

Please sign in to comment.