File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,13 @@ public Attributes returnEntryAttributes(JSONObject entryObject){
3737 }
3838
3939 Document html = null ;
40+ assert rteArray != null ;
4041 for (Object RTE : rteArray ) {
4142 String stringify = (String ) RTE ;
4243 html = Jsoup .parse (stringify );
4344 }
4445
46+ assert html != null ;
4547 Elements embeddedEntries = html .body ().getElementsByClass ("embedded-entry" );
4648 Attributes attributes = embeddedEntries .get (0 ).attributes ();
4749 return embeddedEntries .get (0 ).attributes ();
@@ -56,11 +58,13 @@ public Attributes returnAssetAttributes(JSONObject entryObject){
5658 }
5759
5860 Document html = null ;
61+ assert rteArray != null ;
5962 for (Object RTE : rteArray ) {
6063 String stringify = (String ) RTE ;
6164 html = Jsoup .parse (stringify );
6265 }
6366
67+ assert html != null ;
6468 Elements embeddedEntries = html .body ().getElementsByClass ("embedded-asset" );
6569 Attributes attributes = embeddedEntries .get (0 ).attributes ();
6670 return embeddedEntries .get (0 ).attributes ();
You can’t perform that action at this time.
0 commit comments