Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

My changes to use a ByteArrayOutputStream would cause a NullPointerEx…

…ception if you didn't specify an output file.

This fixes that, yikes.
  • Loading branch information...
commit 2b4fae39896ab05a21d246eb75e4543e373b16e7 1 parent a4f622d
Pat Cavit tivac authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/net/nczonline/web/cssembed/CSSEmbed.java
4 src/net/nczonline/web/cssembed/CSSEmbed.java
View
@@ -203,7 +203,9 @@ public static void main(String[] args) {
try {
out.close();
- bytes.writeTo(new FileOutputStream(outputFilename));
+ if(bytes.size() > 0) {
+ bytes.writeTo(new FileOutputStream(outputFilename));
+ }
} catch (IOException e) {
System.err.println("[ERROR] " + e.getMessage());
if (verbose){
Please sign in to comment.
Something went wrong with that request. Please try again.