KILabel icon indicating copy to clipboard operation
KILabel copied to clipboard

Fix crash

Open alexanderjarvis opened this issue 9 years ago • 1 comments

This patch fixes a crash by checking nil values.

Thread : Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 6523146056 __exceptionPreprocess
1  libobjc.A.dylib                6870957952 objc_exception_throw
2  CoreFoundation                 6522025928 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
3  CoreFoundation                 6522025568 +[NSDictionary dictionaryWithObjects:forKeys:count:]
4  KILabel                        4314112932 -[KILabel attributesFromProperties] (KILabel.m:356)
5  KILabel                        4314110664 -[KILabel setText:] (KILabel.m:224)

alexanderjarvis avatar Oct 26 '15 15:10 alexanderjarvis

Thank you! But why the developers did not write it at once?

Lyonich avatar Dec 19 '16 13:12 Lyonich