Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f86c07af
Kaydet (Commit)
f86c07af
authored
Eki 22, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1326381 Dereference null return value
Change-Id: I86f5fee9bd77b741536816b6b4d1b6b520acba9e
üst
c4e1857d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
ButtonList.java
wizards/com/sun/star/wizards/ui/ButtonList.java
+18
-16
No files found.
wizards/com/sun/star/wizards/ui/ButtonList.java
Dosyayı görüntüle @
f86c07af
...
...
@@ -285,23 +285,25 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
}
for
(
int
i
=
0
;
i
<
m_aButtons
.
length
;
i
++)
{
Object
[]
oResources
=
renderer
.
getImageUrls
(
getObjectFor
(
i
));
if
(
oResources
!=
null
)
Object
oObj
=
getObjectFor
(
i
);
if
(
oObj
==
null
)
continue
;
Object
[]
oResources
=
renderer
.
getImageUrls
(
oObj
);
if
(
oResources
==
null
)
continue
;
if
(
oResources
.
length
==
1
)
{
if
(
oResources
.
length
==
1
)
{
Helper
.
setUnoPropertyValue
(
m_aButtons
[
i
].
getModel
(),
PropertyNames
.
PROPERTY_IMAGEURL
,
oResources
[
0
]);
}
else
if
(
oResources
.
length
==
2
)
{
oUnoDialog
.
getPeerConfiguration
().
setImageUrl
(
m_aButtons
[
i
].
getModel
(),
oResources
[
0
],
oResources
[
1
]);
}
boolean
bTabStop
=
Boolean
.
TRUE
;
// focusable ? Boolean.TRUE : Boolean.FALSE;
Helper
.
setUnoPropertyValue
(
m_aButtons
[
i
].
getModel
(),
"Tabstop"
,
bTabStop
);
if
(
refreshOverNull
)
{
setVisible
(
m_aButtons
[
i
],
true
);
}
Helper
.
setUnoPropertyValue
(
m_aButtons
[
i
].
getModel
(),
PropertyNames
.
PROPERTY_IMAGEURL
,
oResources
[
0
]);
}
else
if
(
oResources
.
length
==
2
)
{
oUnoDialog
.
getPeerConfiguration
().
setImageUrl
(
m_aButtons
[
i
].
getModel
(),
oResources
[
0
],
oResources
[
1
]);
}
boolean
bTabStop
=
Boolean
.
TRUE
;
// focusable ? Boolean.TRUE : Boolean.FALSE;
Helper
.
setUnoPropertyValue
(
m_aButtons
[
i
].
getModel
(),
"Tabstop"
,
bTabStop
);
if
(
refreshOverNull
)
{
setVisible
(
m_aButtons
[
i
],
true
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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