Skip to content

Commit

Permalink
grafikte null basma sorunu çözüldü
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecem authored and Ecem committed Aug 20, 2011
1 parent b24e09a commit a9d2877
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/controllers/Application.java
Expand Up @@ -163,15 +163,14 @@ public static void sayiBul(String k) {
k = duzenle(k);
String[] dizi = k.split(" ");
KokBulucu kok = z.kokBulucu();
String[] gecis = null;
String[] kokler = null;
gecis = new String[dizi.length];
List<String> gecis = new ArrayList();

This comment has been minimized.

Copy link
@fehmicansaglam

fehmicansaglam Aug 20, 2011

Member

List<String> gecis = new ArrayList<String>();

olarak kullanırsak daha doğru olur.

This comment has been minimized.

Copy link
@ecemsomay

ecemsomay Aug 20, 2011

Tamamdır.


for (int i = 0; i < dizi.length; i++) {
kokler = kok.stringKokBul(dizi[i]);
try {
if (!"".equals(kokler[0]))
gecis[i] = kokler[0];
gecis.add(kokler[0]);
} catch (Exception e) {
Logger.error(e, "bir hata oluştu");
}
Expand Down

0 comments on commit a9d2877

Please sign in to comment.