Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

国际化配置文件注释前面有空格会报空异常? #42

Closed
zwtlong opened this issue Aug 23, 2011 · 1 comment
Closed

国际化配置文件注释前面有空格会报空异常? #42

zwtlong opened this issue Aug 23, 2011 · 1 comment
Assignees
Labels
Milestone

Comments

@zwtlong
Copy link

zwtlong commented Aug 23, 2011

在国际化配置文件里,如果注释前面有 空格 则会报个空异常?
#---注释 在#号前面有空格报下面的错误
java.lang.NullPointerException
at java.io.StringReader.(StringReader.java:33)
at org.nutz.lang.segment.CharSegment.valueOf(CharSegment.java:212)
at org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:80)
at org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:240)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:92)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter.init(NutFilter.java:41)

应该可以避免吧?

wendal added a commit that referenced this issue Aug 24, 2011
@ghost ghost assigned wendal Aug 24, 2011
@wendal
Copy link
Member

wendal commented Aug 24, 2011

通过修改MultiLineProperties遵循以下规则:
任何行,如果第一个非空白字符是#的话,则认定为注释行

@wendal wendal closed this as completed Aug 24, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants