Skip to content

Commit

Permalink
update sonarqube rule
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Aug 15, 2019
1 parent 7f4c3d8 commit 300ac60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected void initModel() {

Asset assetBasic = assetR.adaptTo(Asset.class);

if (isNotNull(asset) && isNotNull(assetBasic)) {
if (isNotNull(asset) && assetBasic != null) {
//get asset metadata
String assetUID = asset.getIdentifier();
String licenseInfo = getAssetCopyrightInfo(assetBasic, getI18n().get(DEFAULT_I18N_LABEL_LICENSEINFO, DEFAULT_I18N_CATEGORY));
Expand All @@ -138,7 +138,7 @@ protected void initModel() {

//ensure something is added as title
String title = componentProperties.get(DAM_TITLE, "");
if (isEmpty(title) && isNotNull(assetBasic)) {
if (isEmpty(title) && assetBasic != null) {
componentProperties.put(DAM_TITLE, assetBasic.getName());
}

Expand Down

0 comments on commit 300ac60

Please sign in to comment.