• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

密猟オンラインクライアントプログラム JAVAベース


Commit MetaInfo

Revision16 (tree)
Time2016-12-23 03:05:41
Authormanjihq

Log Message

コマンド評価時に例外が発生する場合があるのを修正

Change Summary

Incremental Difference

--- trunk/src/hunton/SendTask.java (revision 15)
+++ trunk/src/hunton/SendTask.java (revision 16)
@@ -20,6 +20,10 @@
2020 case '/':
2121 /* command prefix */
2222
23+ if (s.length() == 1) {
24+ //
25+ break;
26+ }
2327 switch (s.charAt(1)) {
2428 case 'q':
2529 case 'Q':
@@ -1178,6 +1182,9 @@
11781182 int n;
11791183 StringBuffer work = new StringBuffer();
11801184 s = Hunt.getToken(s, " ,", work);
1185+ if (work.length() < 3) {
1186+ return;
1187+ }
11811188 switch (work.charAt(2)) {
11821189 case 'D':
11831190 /* delete user */