3636 */
3737class Angular2CommitScopeProvider implements CommitScopeProvider {
3838 private static final List <CommitScope > SCOPES = Arrays .asList (
39- new Angular2CommitBuildScope ("npm" , null ),
40- new Angular2CommitBuildScope ("gulp" , null ),
41- new Angular2CommitBuildScope ("broccoli" , null )
39+ new Angular2CommitBuildScope ("npm" , "" ),
40+ new Angular2CommitBuildScope ("gulp" , "" ),
41+ new Angular2CommitBuildScope ("broccoli" , "" )
4242 );
4343
4444 private static final Application APPLICATION = ApplicationManager .getApplication ();
@@ -124,13 +124,13 @@ private CommitScope toCommitScope(@NotNull final Angular2Entity module) {
124124 .getProviderFromElement (sourceElement )
125125 .generateDoc (sourceElement , null );
126126
127- return new Angular2CommitScope (name , documentation );
127+ return new Angular2CommitScope (name , documentation != null ? documentation : "" );
128128 }
129129
130130 private static class Angular2CommitBuildScope extends CommitScope {
131131 Angular2CommitBuildScope (
132132 @ NotNull final String text ,
133- @ Nullable final String description ) {
133+ @ NotNull final String description ) {
134134 super (text , description );
135135 }
136136
@@ -144,7 +144,7 @@ public CommitTokenRendering getRendering() {
144144 private static class Angular2CommitScope extends CommitScope {
145145 Angular2CommitScope (
146146 @ NotNull final String text ,
147- @ Nullable final String description ) {
147+ @ NotNull final String description ) {
148148 super (text , description );
149149 }
150150
0 commit comments