File tree Expand file tree Collapse file tree
src/main/java/org/commcare/xml Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 */
44package org .commcare .xml ;
55
6+ import org .commcare .cases .util .StringUtils ;
67import org .commcare .resources .model .Resource ;
78import org .commcare .resources .model .ResourceTable ;
89import org .commcare .suite .model .AndroidPackageDependency ;
@@ -266,10 +267,10 @@ private Vector<Credential> parseCredentials()
266267 if (tag .equals (NAME_CREDENTIAL )) {
267268 String level = parser .getAttributeValue (null , ATTR_CREDENTIAL_LEVEL );
268269 String type = parser .getAttributeValue (null , ATTR_CREDENTIAL_TYPE );
269- if (level == null ) {
270+ if (StringUtils . isEmpty ( level ) ) {
270271 throw new InvalidStructureException ("No level defined for credential" );
271272 }
272- if (type == null ) {
273+ if (StringUtils . isEmpty ( type ) ) {
273274 throw new InvalidStructureException ("No type defined for credential" );
274275 }
275276 appCredentials .add (new Credential (level , type ));
You can’t perform that action at this time.
0 commit comments