Skip to content

Commit

Permalink
bugfixing for issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioSoler committed Apr 13, 2015
1 parent 5245258 commit b8beffc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -6,4 +6,6 @@ target
alf_data_dev
alfresco.log.*
RemoteSystemsTempFiles
.metadata
.metadata
mvnbuild.cmd
/bin/
Expand Up @@ -40,11 +40,12 @@ public void setServiceRegistry(ServiceRegistry serviceRegistry) {
public String getPersistedMbeanValue(String className, String propertyName) {
try {
Map<String,Serializable> map = (Map<String, Serializable>) attributeService.getAttribute(PROPERTY_BACKED_BEANS,className);
if (map instanceof Map<?,?>) {
if ((map instanceof Map<?,?>) && (map.get(propertyName)!=null)) {
return map.get(propertyName).toString();

}
} catch (Exception e) {
logger.error("Error processing Persisted Values", e);
logger.warn("Error processing Persisted Values of " + className + " Property: " + propertyName , e);
}

return null;
Expand Down

0 comments on commit b8beffc

Please sign in to comment.