File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
JcampConverter/JcampConverter/src/main/java/com/baolan2005/jcampconverter Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class Jcamp {
1313 private val arrTypeDataXPlusY = arrayOf(" (X++(Y..Y)" , " (X++(R..R)" , " (X++(I..I)" )
1414 private val arrTypeDataXY = arrayOf(" (XY..XY)" )
1515
16- lateinit var children: ArrayList <Jcamp >
16+ var children: ArrayList <Jcamp >? = null ;
1717
1818 public class Spectra {
1919 public var xValues: ArrayList <Double >
@@ -33,7 +33,7 @@ class Jcamp {
3333
3434 public fun hasChild (): Boolean {
3535 if (children != null ) {
36- return children.size > 0
36+ return children!! .size > 0
3737 }
3838 return false
3939 }
@@ -59,7 +59,7 @@ class Jcamp {
5959 if (this .children == null ) {
6060 this .children = ArrayList ()
6161 }
62- this .children.add(childJcamp)
62+ this .children? .add(childJcamp)
6363 }
6464 else if (value is String ) {
6565 val childString = value
You can’t perform that action at this time.
0 commit comments