From afc7c596fc1e507f2f7805f3e264fac342fd2ea6 Mon Sep 17 00:00:00 2001 From: PaulStoffregen Date: Tue, 2 Aug 2016 02:43:04 -0700 Subject: [PATCH] Only sort ideLibs if it's not empty --- app/src/processing/app/Base.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 514e10701..7e4d602ed 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -1214,8 +1214,8 @@ public class Base { } // Add examples from libraries - ideLibs.sort(); if (!ideLibs.isEmpty()) { + ideLibs.sort(); label = new JMenuItem(tr("Examples from Built-in Libraries")); label.setEnabled(false); menu.add(label);