[#6525] Fixed NPE
This commit is contained in:
parent
b2e81d227a
commit
d2f72e98e6
@ -203,7 +203,10 @@ public final class SettingsTools {
|
||||
*/
|
||||
public static final Settings clone(Settings settings) {
|
||||
Settings result = (Settings) settings.clone();
|
||||
result.renderFormatting = (RenderFormatting) result.renderFormatting.clone();
|
||||
|
||||
if (result.renderFormatting != null)
|
||||
result.renderFormatting = (RenderFormatting) result.renderFormatting.clone();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user