@@ -57,7 +57,7 @@ public AttributeConsumingService(int index, Boolean isDefault, String serviceNam
57
57
this .index = index ;
58
58
this .isDefault = isDefault ;
59
59
this .serviceName = serviceName != null ? serviceName : "" ;
60
- this .serviceDescription = serviceDescription != null ? serviceDescription : "" ;
60
+ this .serviceDescription = serviceDescription ;
61
61
this .lang = lang != null ? lang : "en" ;
62
62
this .requestedAttributes = new ArrayList <RequestedAttribute >();
63
63
}
@@ -79,18 +79,21 @@ public AttributeConsumingService(int index, Boolean isDefault, String serviceNam
79
79
}
80
80
81
81
/**
82
- * Constructor for a non-default attribute consuming service with index <code>1</code>
83
- * and service name and descriptions in English.
84
- * Mainly kept for backward compatibility, this constructor can be used when an only
85
- * attribute consuming service is required.
82
+ * Constructor for a non-default attribute consuming service with index
83
+ * <code>1</code> and service name and descriptions in English.
84
+ * <p>
85
+ * Mainly kept for backward compatibility, this constructor can be used when an
86
+ * only attribute consuming service is required. Please also note that, to
87
+ * maintain full backward compatibility, if the service description is
88
+ * <code>null</code> this constructor will set is as an empty string.
86
89
*
87
90
* @param serviceName
88
91
* String. Service Name
89
92
* @param serviceDescription
90
- * String. Service Description
93
+ * String. Service Description; if <code>null</code>, an empty string will be set
91
94
*/
92
95
public AttributeConsumingService (String serviceName , String serviceDescription ) {
93
- this (1 , null , serviceName , serviceDescription , null );
96
+ this (1 , null , serviceName , serviceDescription != null ? serviceDescription : "" , null );
94
97
}
95
98
96
99
/**
0 commit comments