当我添加将RealmObject扩展到我的项目的ChatInformation kotlin类时,无法建立项目,错误在哪里?

这是我的ChatInformation kotlin类:

open class ChatInformation( var Id: Int = 0, var TopicId: Int = 0, var CreateTime: String? = null, var StartTime: String? = null, var EndTime: String? = null, var StatusId: Int = 0, var Duration: String? = null, var TeacherId: String = "", var LearnerId: String = "", var SubjectName: String = "", var TopicTitle: String = "", var Class: Int = 0, var Learner: String = "", var Teacher: String = "", var TeacherReady: Boolean = false, var LearnerReady: Boolean = false ) : RealmObject() 

如果我添加这个类,我得到以下错误:

 Error:Execution failed for task ':app:compileDebugJavaWithJavac'.Compilation failed; see the compiler error output for details. 

如果看到compliler这

 Note: Processing class ChatLesson Note: Processing class CustomMessage Note: Processing class RequestListen Note: Creating DefaultRealmModule An exception has occurred in the compiler (1.8.0_152-release). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you. java.lang.NullPointerException 

与长的错误跟踪

如果我删除或评论ChatInformation类建立成功,哪里是错误? 我已经尝试在领域3.5.0和3.7.1版本

我的错误是:我有一个

var类:Int = 0

字段在我的ChatInformation类,如果删除这个领域,它的作品不错