Skip to content

Commit 1e6d42d

Browse files
committed
handle null value
1 parent 9e63252 commit 1e6d42d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

models/SentryService.cfc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,9 @@ component accessors=true singleton {
718718
if ( listFindNoCase( "id,email,ip_address,username", key ) ) {
719719
key = lCase( key );
720720
}
721-
correctCasingUserInfo[ key ] = thisUserInfo[ key ];
721+
if(!isNull(thisUserInfo[ key ])) {
722+
correctCasingUserInfo[ key ] = thisUserInfo[ key ];
723+
}
722724
}
723725

724726
arguments.captureStruct[ "user" ] = correctCasingUserInfo;

0 commit comments

Comments
 (0)