Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Space in if statement causes error #54

Open
fbairn opened this issue Oct 26, 2015 · 1 comment
Open

Space in if statement causes error #54

fbairn opened this issue Oct 26, 2015 · 1 comment

Comments

@fbairn
Copy link

fbairn commented Oct 26, 2015

I was getting an invalid argument error. I narrowed it down to a single if statement in one of my files.

An error shows up when this statement has spaces between c.commentPublic and !=
This works: if(c.commentPublic!=null){
This does not work: if(c.commentPublic !=null){

Version 1.1.5
Error log
java.lang.NullPointerException
at org.salesforce.apexdoc.ClassModel$1.compare(ClassModel.java:55)
at org.salesforce.apexdoc.ClassModel$1.compare(ClassModel.java:1)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:360)
at java.util.TimSort.sort(TimSort.java:220)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1454)
at java.util.Collections.sort(Collections.java:175)
at org.salesforce.apexdoc.ClassModel.getMethodsSorted(ClassModel.java:48)
at org.salesforce.apexdoc.FileManager.htmlForClassModel(FileManager.java:217)
at org.salesforce.apexdoc.FileManager.makeFile(FileManager.java:143)
at org.salesforce.apexdoc.FileManager.createDoc(FileManager.java:429)
at org.salesforce.apexdoc.ApexDoc.RunApexDoc(ApexDoc.java:128)
at org.salesforce.apexdoc.ApexDoc.main(ApexDoc.java:36)

@davidhabib
Copy link
Contributor

the string "Public " is throwing off the pseudo-parsing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants