Project

General

Profile

« Previous | Next » 

Revision 7037

check if verified flag is null before evaluating (NPE during MN Auth test)
https://redmine.dataone.org/issues/2429

View differences:

D1NodeService.java
716 716
				for (Person p : personList) {
717 717
					// for the primary person
718 718
					if (p.getSubject().equals(subject)) {
719
						if (p.getVerified()) {
719
						if (p.getVerified() != null && p.getVerified()) {
720 720
							// add the verified symbolic user
721 721
							if (!subjects.contains(verifiedSubject)) {
722 722
								subjects.add(verifiedSubject);

Also available in: Unified diff