This is an automated email from the ASF dual-hosted git repository.
jlahoda pushed a commit to branch release90
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git
The following commit(s) were added to refs/heads/release90 by this push:
new 69e8868 [NETBEANS-785] java.lang.IllegalArgumentException
69e8868 is described below
commit 69e8868d10b544280fa28baa62d41c4057376c22
Author: Junichi Yamamoto <[email protected]>
AuthorDate: Sun May 13 07:15:03 2018 +0900
[NETBEANS-785] java.lang.IllegalArgumentException
---
maven/src/org/netbeans/modules/maven/customizer/SourcesPanel.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/maven/src/org/netbeans/modules/maven/customizer/SourcesPanel.java
b/maven/src/org/netbeans/modules/maven/customizer/SourcesPanel.java
index 1dc2ad3..52b6e09 100644
--- a/maven/src/org/netbeans/modules/maven/customizer/SourcesPanel.java
+++ b/maven/src/org/netbeans/modules/maven/customizer/SourcesPanel.java
@@ -473,6 +473,9 @@ public class SourcesPanel extends JPanel implements
HelpCtx.Provider {
private synchronized String[] getSourceLevels() {
if (sourceLevelCache == null) {
Union2<JavaPlatform, String> union = (Union2<JavaPlatform,
String>) platformComboBoxModel.getSelectedItem();
+ if (!union.hasFirst()) {
+ return new String[0];
+ }
JavaPlatform platform = union.first();
List<String> sourceLevels = new ArrayList<>();
if (platform != null) {
--
To stop receiving notification emails like this one, please contact
[email protected].
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists