Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Merge pull request #155 from devoncarew/devoncarew_fix_npe
Browse files Browse the repository at this point in the history
fix an npe when generating samples
  • Loading branch information
devoncarew committed Nov 20, 2014
2 parents ea5a885 + 1024f3d commit 176c6ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/src/cli_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import 'package:stagehand/src/common.dart';
const String APP_NAME = 'stagehand';

// This version must be updated in tandem with the pubspec version.
const String APP_VERSION = '0.1.3+1';
const String APP_VERSION = '0.1.3+2';

// The Google Analytics tracking ID for stagehand.
const String _GA_TRACKING_ID = 'UA-55033590-1';
Expand Down
8 changes: 5 additions & 3 deletions lib/stagehand.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ abstract class Generator implements Comparable<Generator> {
'year': new DateTime.now().year.toString()
};

additionalVars.keys.forEach((key) {
vars[key] = additionalVars[key];
});
if (additionalVars != null) {
additionalVars.keys.forEach((key) {
vars[key] = additionalVars[key];
});
}

if (!vars.containsKey('author')) {
vars['author'] = '<your name>';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

name: stagehand
# When changing this version, change the lib/src/cli_app.dart version as well.
version: 0.1.3+1
version: 0.1.3+2
description: >
A scaffolding generator for your Dart projects. Stagehand helps you get set
up!
Expand Down

0 comments on commit 176c6ac

Please sign in to comment.