File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
itext/itext.styledxmlparser/itext/styledxmlparser/css Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ public CssFontFaceRule()
60
60
/// <summary>Gets the properties.</summary>
61
61
/// <returns>the properties</returns>
62
62
public virtual IList < CssDeclaration > GetProperties ( ) {
63
+ if ( properties == null ) {
64
+ return new List < CssDeclaration > ( ) ;
65
+ }
63
66
return new List < CssDeclaration > ( properties ) ;
64
67
}
65
68
@@ -76,7 +79,7 @@ public override void AddBodyCssDeclarations(IList<CssDeclaration> cssDeclaration
76
79
public override String ToString ( ) {
77
80
StringBuilder sb = new StringBuilder ( ) ;
78
81
sb . Append ( "@" ) . Append ( GetRuleName ( ) ) . Append ( " {" ) . Append ( "\n " ) ;
79
- foreach ( CssDeclaration declaration in properties ) {
82
+ foreach ( CssDeclaration declaration in GetProperties ( ) ) {
80
83
sb . Append ( " " ) ;
81
84
sb . Append ( declaration ) ;
82
85
sb . Append ( ";\n " ) ;
Original file line number Diff line number Diff line change 1
- 32b7cef68810f31fbac4035995430d0d6025ce76
1
+ aaf9dee82b3f93db0f1e8367a6aa18f62cbe77d7
You can’t perform that action at this time.
0 commit comments