Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
e3e6345e
Commit
e3e6345e
authored
Feb 21, 2019
by
David Venhoek
Browse files
Simple fix to stop Map from crashing on credentials that have too few attributes for their type.
parent
d14a7d11
Changes
1
Hide whitespace changes
Inline
Side-by-side
attributes.go
View file @
e3e6345e
...
...
@@ -85,7 +85,11 @@ func (al *AttributeList) Map(conf *Configuration) map[AttributeTypeIdentifier]Tr
ct
:=
conf
.
CredentialTypes
[
ctid
]
for
i
:=
range
ct
.
AttributeTypes
{
attrid
:=
ct
.
AttributeTypes
[
i
]
.
GetAttributeTypeIdentifier
()
al
.
attrMap
[
attrid
]
=
strings
[
i
]
if
i
<
len
(
strings
)
{
al
.
attrMap
[
attrid
]
=
strings
[
i
]
}
else
{
al
.
attrMap
[
attrid
]
=
nil
}
}
}
return
al
.
attrMap
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment