File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
java/com/aventstack/extentreports/reporter
resources/com/aventstack/extentreports/view/v3html Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -250,9 +250,12 @@ private void mediaExists(Media m) throws IOException {
250250 }
251251
252252 private void autoCreateRelativePathMedia (ScreenCapture screenCapture ) throws IOException {
253+ if (userConfig == null )
254+ return ;
255+
253256 String autoCreateRelativePathMedia = userConfig .getConfigMap ().get (DEFAULT_MEDIA_SAVE_PROPERTY_NAME );
254257 // check always so user has the option to disable this setting at anytime
255- if (Boolean .valueOf (autoCreateRelativePathMedia )) {
258+ if (autoCreateRelativePathMedia != null && Boolean .valueOf (autoCreateRelativePathMedia )) {
256259 if (media == null ) {
257260 media = new LocalMediaStorageHandler ();
258261 media .init (destination + DEFAULT_MEDIA_SAVE_PATH_NAME );
Original file line number Diff line number Diff line change 1010
1111 <link href =' ${ config.getValue(' protocol ' ) }://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600' rel =' stylesheet' type =' text/css' />
1212 <link href =" ${ config.getValue('protocol') }://fonts.googleapis.com/icon?family=Material+Icons" rel =" stylesheet" />
13- <link href =' ${ config.getValue(' protocol ' ) }://cdn.rawgit.com/extent-framework/extent-github-cdn/191775216e8ce53c38791eb07a1d2f31d0ae11b5 /v3html/css/extent.css' type =' text/css' rel =' stylesheet' />
13+ <link href =' ${ config.getValue(' protocol ' ) }://cdn.rawgit.com/extent-framework/extent-github-cdn/e9ccc29bd18c7914697075f44948d0913e462478 /v3html/css/extent.css' type =' text/css' rel =' stylesheet' />
1414
1515 <title >${ config.getValue('documentTitle') }</title >
1616
Original file line number Diff line number Diff line change 107107 < #if config .getValue (' offline' )? string == ' true' >
108108 < script src= ' extent/js/extent.js' type= ' text/javascript' >< / script>
109109 < #else >
110- < script src= ' ${ config.getValue(' protocol' ) }://cdn.rawgit.com/extent-framework/extent-github-cdn/master /v3html/js/extent.js' type= ' text/javascript' >< / script>
110+ < script src= ' ${ config.getValue(' protocol' ) }://cdn.rawgit.com/extent-framework/extent-github-cdn/e9ccc29bd18c7914697075f44948d0913e462478 /v3html/js/extent.js' type= ' text/javascript' >< / script>
111111 < / #if >
112112 < #assign hide= (chartVisibleOnOpen== ' true' )? then (false , true )>
113113 < #if hide>
You can’t perform that action at this time.
0 commit comments