Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-studio
Commits
419832ee
Commit
419832ee
authored
Oct 19, 2015
by
Romain Bioteau
Browse files
BS-14097
Check empty collection instead of null
parent
46f18148
Changes
1
Hide whitespace changes
Inline
Side-by-side
bundles/plugins/org.bonitasoft.studio.common.repository/src/org/bonitasoft/studio/common/repository/store/SourceRepositoryStore.java
View file @
419832ee
...
...
@@ -19,6 +19,7 @@ import java.io.InputStream;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Set
;
import
org.bonitasoft.studio.common.NamingUtils
;
import
org.bonitasoft.studio.common.jface.FileActionDialog
;
...
...
@@ -168,7 +169,8 @@ public abstract class SourceRepositoryStore<T extends AbstractFileStore> extends
@Override
public
List
<
T
>
getChildren
()
{
refresh
();
if
(
getCompatibleExtensions
()
!=
null
)
{
Set
<
String
>
compatibleExtensions
=
getCompatibleExtensions
();
if
(
compatibleExtensions
!=
null
&&
!
compatibleExtensions
.
isEmpty
())
{
return
super
.
getChildren
();
}
final
List
<
T
>
result
=
new
ArrayList
<
T
>();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment