Github user ajs6f commented on a diff in the pull request:

    https://github.com/apache/jena/pull/95#discussion_r42320708
  
    --- Diff: 
jena-arq/src/main/java/org/apache/jena/sparql/resultset/CSVOutput.java ---
    @@ -102,6 +102,62 @@ public void format(OutputStream out, ResultSet 
resultSet)
             }
         }
     
    +    @Override
    +    public void format(OutputStream out, ResultSet resultSet, 
StringBuilder cacheBuilder)
    +    {
    +        try {
    +            Writer w = FileUtils.asUTF8(out) ;
    +            NodeToLabelMap bnodes = new NodeToLabelMap() ;
    +            w = new BufferedWriter(w) ;
    +
    +            String sep = null ;
    +            List<String> varNames = resultSet.getResultVars() ;
    +            List<Var> vars = new ArrayList<>(varNames.size()) ;
    +
    +            // Convert to Vars and output the header line.
    +            for( String v : varNames )
    +            {
    +                if ( sep != null ){
    --- End diff --
    
    How is `sep` not going to be `null` at this line?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to