From 337c4763dbd3d700edd7bb497b5c2c54310fe8a5 Mon Sep 17 00:00:00 2001 From: Nicolas Rod <Nicolas.Rod@unige.ch> Date: Mon, 20 Jan 2025 17:17:36 +0100 Subject: [PATCH] fix(OrcidToken): user's name can be null or empty if the user has set their name to private in their profile --- .../src/main/java/ch/unige/solidify/model/OrcidToken.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/solidify-orcid-model/src/main/java/ch/unige/solidify/model/OrcidToken.java b/solidify-orcid-model/src/main/java/ch/unige/solidify/model/OrcidToken.java index 9211c5d11..3a8df602d 100644 --- a/solidify-orcid-model/src/main/java/ch/unige/solidify/model/OrcidToken.java +++ b/solidify-orcid-model/src/main/java/ch/unige/solidify/model/OrcidToken.java @@ -9,12 +9,12 @@ * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-2.0.html>. @@ -51,7 +51,9 @@ public class OrcidToken extends ResourceNormalized { @NotNull private String scope; - @NotNull + /** + * The user's name retrieved from an ORCID record. This field may be null or empty if the user has set their name to private in their profile. + */ private String name; @NotNull -- GitLab