This repository was archived by the owner on Oct 18, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/main/java/com/groupdocs/ui Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .groupdocs .annotation .common .license .License ;
4
4
import com .groupdocs .annotation .domain .AnnotationInfo ;
5
+ import com .groupdocs .annotation .domain .AnnotationReplyInfo ;
5
6
import com .groupdocs .annotation .domain .config .AnnotationConfig ;
6
7
import com .groupdocs .annotation .domain .results .CreateAnnotationResult ;
7
8
import com .groupdocs .annotation .handler .AnnotationImageHandler ;
@@ -51,10 +52,13 @@ synchronized public static Document findDocumentByName(String name) {
51
52
.forEach (ai -> {
52
53
ai .setDocumentGuid (documentId );
53
54
CreateAnnotationResult car = imageHandler .createAnnotation (ai );
54
- Arrays .stream (ai .getReplies ())
55
- .forEach (ari -> {
56
- imageHandler .createAnnotationReply (car .getId (), ari .getMessage ());
57
- });
55
+ AnnotationReplyInfo [] rs = ai .getReplies ();
56
+ if (rs != null ) {
57
+ Arrays .stream (ai .getReplies ())
58
+ .forEach (ari -> {
59
+ imageHandler .createAnnotationReply (car .getId (), ari .getMessage ());
60
+ });
61
+ }
58
62
});
59
63
doc = documentDataHandler .get (documentId );
60
64
return doc ;
You can’t perform that action at this time.
0 commit comments